WalletDB() usage: trivial refactors and fixes

split off from https://github.com/spesmilo/electrum/pull/10027
This commit is contained in:
SomberNight
2025-07-15 12:25:47 +00:00
parent 7611d4c3b3
commit 3c82b00c5e
5 changed files with 13 additions and 10 deletions

View File

@@ -84,8 +84,8 @@ if __name__ == '__main__':
test_password = partial(test_password_for_storage_encryption, storage)
print(f"wallet found: with storage encryption.")
else:
db = WalletDB(storage.read(), manual_upgrades=True)
wallet = Wallet(db, storage, config=config)
db = WalletDB(storage.read(), storage=storage, upgrade=False)
wallet = Wallet(db, config=config)
if not wallet.has_password():
print("wallet found but it is not encrypted.")
sys.exit(0)