commit 8e95706763b542062ec818fe88d7dd635448a3ab
parent 0b76e16d04dd28fbda32b2855dfe8cb9b8a4953a
Author: thomasv <thomasv@gitorious>
Date: Mon, 22 Oct 2012 14:49:29 +0200
init_up_to_date when connected
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -93,6 +93,9 @@ class Wallet:
if self.seed_version != SEED_VERSION:
raise ValueError("This wallet seed is deprecated. Please run upgrade.py for a diagnostic.")
+ def init_up_to_date(self):
+ self.up_to_date_event.clear()
+ self.up_to_date = False
def import_key(self, keypair, password):
address, key = keypair.split(':')
@@ -827,6 +830,7 @@ class WalletSynchronizer(threading.Thread):
self.wallet = wallet
self.interface = self.wallet.interface
self.interface.register_channel('synchronizer')
+ self.wallet.interface.register_callback('connected', self.wallet.init_up_to_date)
def synchronize_wallet(self):