commit 91f8bb7d0b22c0c59207e5c80c4d669fa359cf42
parent dd2302140f9c13d60416843f8842e75c7f0b02b7
Author: thomasv <thomasv@gitorious>
Date: Mon, 5 Nov 2012 13:12:22 +0100
start synchronizer only after verifier is created
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/electrum b/electrum
@@ -189,7 +189,6 @@ if __name__ == '__main__':
interface.send([('server.peers.subscribe',[])])
wallet.interface = interface
- WalletSynchronizer(wallet, config).start()
gui = gui.ElectrumGui(wallet, config)
interface.register_callback('peers', gui.server_list_changed)
@@ -197,6 +196,7 @@ if __name__ == '__main__':
verifier = WalletVerifier(interface, config)
wallet.set_verifier(verifier)
+ WalletSynchronizer(wallet, config).start()
try:
found = config.wallet_file_exists
if not found:
@@ -263,12 +263,12 @@ if __name__ == '__main__':
interface = Interface(config)
interface.start()
wallet.interface = interface
- WalletSynchronizer(wallet, config).start()
verifier = WalletVerifier(interface, config)
wallet.set_verifier(verifier)
print "Recovering wallet..."
+ WalletSynchronizer(wallet, config).start()
wallet.up_to_date_event.clear()
wallet.up_to_date = False
wallet.update()