1
0

Clean up and fix account adding

As per BIP44, 20 addresses are checked for transactions, not just the
first one.
Show the last account only if used or named.
If all accounts are used, prompt for password to create new one.

Fixes #1128
This commit is contained in:
Neil Booth
2015-12-25 18:19:44 +09:00
parent fbdfb45dd1
commit a58c19d7c0
4 changed files with 115 additions and 167 deletions

View File

@@ -178,6 +178,4 @@ class Synchronizer(ThreadJob):
up_to_date = self.is_up_to_date()
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(write=True)
self.network.trigger_callback('updated')