1
0

Make storage a field of db

This comes from the jsonpatch_new branch.
I rather have in master now, because it touches a lot of filese.
This commit is contained in:
ThomasV
2023-06-23 17:36:34 +02:00
parent 0ebb6469ff
commit b96cc82333
18 changed files with 87 additions and 88 deletions

View File

@@ -226,8 +226,8 @@ async def run_offline_command(config, config_options, plugins: 'Plugins'):
password = get_password_for_hw_device_encrypted_storage(plugins)
config_options['password'] = password
storage.decrypt(password)
db = WalletDB(storage.read(), manual_upgrades=False)
wallet = Wallet(db, storage, config=config)
db = WalletDB(storage.read(), storage=storage, manual_upgrades=False)
wallet = Wallet(db, config=config)
config_options['wallet'] = wallet
else:
wallet = None