tinit_up_to_date when connected - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 8e95706763b542062ec818fe88d7dd635448a3ab DIR parent 0b76e16d04dd28fbda32b2855dfe8cb9b8a4953a HTML Author: thomasv <thomasv@gitorious> Date: Mon, 22 Oct 2012 14:49:29 +0200 init_up_to_date when connected Diffstat: M lib/wallet.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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(':') t@@ -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):