mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
save_backup: use db.dump() to clone the db
This commit is contained in:
parent
88d5cdf87c
commit
cee8607218
1 changed files with 1 additions and 2 deletions
|
@ -264,10 +264,9 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
|
|||
self.db.write(self.storage)
|
||||
|
||||
def save_backup(self, path, *, old_password=None, new_password=None):
|
||||
new_db = WalletDB(self.storage.read(), manual_upgrades=False)
|
||||
new_db = WalletDB(self.db.dump(), manual_upgrades=False)
|
||||
new_db.put('is_backup', True)
|
||||
new_storage = WalletStorage(path)
|
||||
#new_storage._encryption_version = self.storage.get_encryption_version()
|
||||
new_storage._encryption_version = StorageEncryptionVersion.PLAINTEXT
|
||||
w2 = Wallet(new_db, new_storage, config=self.config)
|
||||
if new_password:
|
||||
|
|
Loading…
Add table
Reference in a new issue