1
0

Merge branch 'synchronizer-unthread' of https://github.com/kyuupichan/electrum into kyuupichan-synchronizer-unthread

This commit is contained in:
ThomasV
2015-07-02 09:20:51 +02:00
3 changed files with 151 additions and 152 deletions

View File

@@ -1107,15 +1107,16 @@ class Abstract_Wallet(object):
self.verifier.start()
self.set_verifier(self.verifier)
self.synchronizer = WalletSynchronizer(self, network)
self.synchronizer.start()
network.jobs.append(self.synchronizer.main_loop)
else:
self.verifier = None
self.synchronizer =None
self.synchronizer = None
def stop_threads(self):
if self.network:
self.verifier.stop()
self.synchronizer.stop()
self.network.jobs = []
self.synchronizer = None
self.storage.put('stored_height', self.get_local_height(), True)
def restore(self, cb):