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:
@@ -179,5 +179,5 @@ class Synchronizer(ThreadJob):
|
||||
if up_to_date != self.wallet.is_up_to_date():
|
||||
self.wallet.set_up_to_date(up_to_date)
|
||||
if up_to_date:
|
||||
self.wallet.save_transactions()
|
||||
self.wallet.save_transactions(write=True)
|
||||
self.network.trigger_callback('updated')
|
||||
|
||||
Reference in New Issue
Block a user