1
0

separate synchronize and update_tx_history

This commit is contained in:
ThomasV
2011-12-19 13:18:19 +01:00
parent a7aa613b58
commit fd5f581128
2 changed files with 28 additions and 13 deletions

View File

@@ -134,9 +134,15 @@ def init_wallet(wallet):
def recover_thread( wallet, dialog ):
wallet.init_mpk( wallet.seed ) # not encrypted at this point
wallet.is_found = wallet.synchronize()
if wallet.is_found:
wallet.synchronize()
if wallet.is_found():
# history and addressbook
wallet.update_tx_history()
wallet.fill_addressbook()
print "recovery successful"
wallet.save()
gobject.idle_add( dialog.destroy )
thread.start_new_thread( recover_thread, ( wallet, dialog ) )
@@ -504,8 +510,8 @@ class BitcoinGUI:
get_servers_time = time.time()
self.period = 15 if self.wallet.use_http() else 5
u = self.wallet.update()
if u:
if self.wallet.update():
self.wallet.update_session()
gobject.idle_add( self.update_history_tab )
gobject.idle_add( self.update_receiving_tab )
# addressbook too...