1
0

update and fix the merchant script (fixes issue #254)

This commit is contained in:
ThomasV
2013-10-06 21:16:09 +02:00
parent 33db7a0c43
commit ea0f270fd9
4 changed files with 116 additions and 120 deletions

View File

@@ -1426,7 +1426,7 @@ class Wallet:
self.verifier = TxVerifier(self.network, self.storage)
self.verifier.start()
self.set_verifier(self.verifier)
self.synchronizer = WalletSynchronizer(self)
self.synchronizer = WalletSynchronizer(self, network)
self.synchronizer.start()
def stop_threads(self):
@@ -1476,13 +1476,11 @@ class Wallet:
class WalletSynchronizer(threading.Thread):
def __init__(self, wallet):
def __init__(self, wallet, network):
threading.Thread.__init__(self)
self.daemon = True
self.wallet = wallet
wallet.synchronizer = self
self.network = self.wallet.network
#self.wallet.network.register_callback('connected', lambda: self.wallet.set_up_to_date(False))
self.network = network
self.was_updated = True
self.running = False
self.lock = threading.Lock()