Write the wallet less often
This should speed up synchronization / restoration of large wallets. Wallets are written only when they switch to up_to_date state, or when stop_threads() is called when closing the daemon, or when a command line command finishes.
This commit is contained in:
@@ -305,8 +305,8 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
return
|
||||
|
||||
password = window.password_dialog()
|
||||
wallet.storage.put('seed_version', wallet.seed_version, True)
|
||||
wallet.storage.put('use_encryption', password is not None, True)
|
||||
wallet.storage.put('seed_version', wallet.seed_version)
|
||||
wallet.storage.put('use_encryption', password is not None)
|
||||
|
||||
words = seed.split()
|
||||
n = len(words)/2
|
||||
|
||||
Reference in New Issue
Block a user