1
0

start wallet threads from wallet class

This commit is contained in:
ThomasV
2013-09-01 18:44:19 +02:00
parent d47892b690
commit 046ec58d24
4 changed files with 33 additions and 48 deletions

View File

@@ -1296,6 +1296,19 @@ class Wallet:
return True
def start_threads(self, interface, blockchain):
from verifier import TxVerifier
self.interface = interface
self.verifier = TxVerifier(interface, blockchain, self.storage)
self.verifier.start()
self.synchronizer = WalletSynchronizer(self)
self.synchronizer.start()
def stop_threads(self):
self.verifier.stop()
self.synchronizer.stop()
class WalletSynchronizer(threading.Thread):