Coder Social home page Coder Social logo

Comments (8)

mccwdev avatar mccwdev commented on July 22, 2024

The service object was using a deprecated bitcoind method. This issue is fixed in 5d32942

Thanks for your bug report!

from bitcoinlib.

mekool avatar mekool commented on July 22, 2024

Thank you.
I changed those 2 lines in the code of:
/root/venv/lib/python3.6/site-packages/bitcoinlib/services/bitcoind.py

What is next? Do I need to re-compile / re-install bitcoinlib so that the changes take effect ?
Sorry for asking this unprofessional question.

from bitcoinlib.

mccwdev avatar mccwdev commented on July 22, 2024

That could work depending on your installation but normally you would just upgrade/reinstall the library with something like:
pip install bitcoinlib --upgrade

See https://bitcoinlib.readthedocs.io/en/latest/_static/manuals.install.html

Or did you use another way to install the library?

from bitcoinlib.

mekool avatar mekool commented on July 22, 2024

Super, that worked! The library is updated and the changes have taken effect.

So now bitcoinlib is trying to retrieve the UTXO's from the bitcoind daemon for a given address of the bitcoinlib wallet, e.g. for 1FMtJUJL6Lbr6hYXoaRBdPSvsGVMuXgYKs

Then I get this WARNING:
2019/06/04 08:04:45 WARNING init(37) Address 1FMtJUJL6Lbr6hYXoaRBdPSvsGVMuXgYKs not found in bitcoind wallet, use 'importaddress' to add address to wallet.

It is obvious that this address of the bitcoinlib wallet is NOT contained in the bitcoind wallet, explaining the WARNING.

Is it not possible to retrieve the UTXO's for an address contained in the bitcoinlib wallet?

from bitcoinlib.

mccwdev avatar mccwdev commented on July 22, 2024

The bitcoind deamon only has information about his own addresses so or you the same private key in bitcoinlib and bitcoind (which doesn't make it any more secure) or you could import an address in bitcoind (which takes a lot of time because you need to reindex) or find another clever solution maybe.

But if you want to keep it simple my advice would be to use one of the other online service providers instead of bitcoind which are also included in bitcoinlib.

from bitcoinlib.

mekool avatar mekool commented on July 22, 2024

Hmm, I understand.
I am running a Bitcoin full node on a Linux server, and I was hoping that I could do everything via the bitcoind daemon on this server without the need to access any 3rd-party online service providers (as your approach via bitcoinlib suggests).

I like your bitcoinlib library very much. It is very comprehensive (also good documentation with practical examples) and has a very clean abstraction level to basically do everything I want with just a few simple programming lines.

Well anyway, I will need to move on and find another approach to utilize bitcoind's wallet.

from bitcoinlib.

mccwdev avatar mccwdev commented on July 22, 2024

Thanks, and good luck!
You could also look in alternative bitcoin nodes such as bitcore or bitcoin knots (see https://coin.dance/nodes), I'm not sure if bitcoind will do the trick for you.

from bitcoinlib.

mekool avatar mekool commented on July 22, 2024

I think I will simply do everything with the bitcoin-cli command-line interface and RPC. That should work.

from bitcoinlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.