commit e20e40829d6795b6aa80b131b4102609b025af22
parent 927bbda5918304efdd66cddbe2cb2d710bd757ef
Author: thomasv <thomasv@gitorious>
Date: Fri, 26 Oct 2012 09:08:06 +0200
start verifier thread only after the first wallet synchronization
Diffstat:
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/electrum b/electrum
@@ -185,17 +185,13 @@ if __name__ == '__main__':
sys.exit("Error: Unknown GUI: " + pref_gui )
interface = Interface(config, True)
+ interface.start()
+
wallet.interface = interface
+ WalletSynchronizer(wallet, config).start()
+
gui = gui.ElectrumGui(wallet, config)
interface.register_callback('peers', gui.server_list_changed)
-
- interface.start()
- WalletSynchronizer(wallet, config).start()
-
- verifier = WalletVerifier(interface, config, wallet.get_tx_hashes)
- verifier.start()
- wallet.verifier = verifier
-
try:
found = config.wallet_file_exists
if not found:
@@ -210,6 +206,11 @@ if __name__ == '__main__':
if not found:
exit(1)
+
+ verifier = WalletVerifier(interface, config, wallet.get_tx_hashes)
+ wallet.verifier = verifier
+ verifier.start()
+
gui.main(url)
wallet.save()
sys.exit(0)