1200wd / bitcoinlib

Bitcoin and other Cryptocurrencies Library for Python. Includes a fully functional wallet, Mnemonic key generation and management and connection with various service providers to receive and send blockchain and transaction information.
http://bitcoinlib.readthedocs.io/
GNU General Public License v3.0
597 stars 199 forks source link

Wallet not found, passphrase error #328

Closed StasFQ closed 1 year ago

StasFQ commented 1 year ago

I am using docker for my project and database, volumes are configured correctly.When I do a re-build of the image(update to code) I get an error: bitcoinlib.wallets.WalletError: Wallet 'wallet_name' not found, please specify correct wallet ID or name. Then got this: PassphraseError: Wrong passphrase How to fix that?

mccwdev commented 1 year ago

Not sure, looks like the database or link to the database is different. Please check the link to database and make sure the database is not overwritten during an image rebuild.

StasFQ commented 1 year ago

No, the database is not overwritten when the image is rebuilt, the problem is only with bitcoin and Litecoin wallets,everything else works successfully in the project

mccwdev commented 1 year ago

It's hard to tell why the wallet cannot be found without knowing the details of your project. Maybe you can check with list_wallets() if the wallet is available in the database, or try to open it with the id instead of the name.

StasFQ commented 1 year ago

resolved with db_uri