fix: do not request the same history twice
This commit is contained in:
@@ -1252,8 +1252,9 @@ class WalletSynchronizer(threading.Thread):
|
|||||||
if method == 'blockchain.address.subscribe':
|
if method == 'blockchain.address.subscribe':
|
||||||
addr = params[0]
|
addr = params[0]
|
||||||
if self.wallet.get_status(self.wallet.get_history(addr)) != result:
|
if self.wallet.get_status(self.wallet.get_history(addr)) != result:
|
||||||
self.interface.send([('blockchain.address.get_history', [addr])], 'synchronizer')
|
if requested_histories.get(addr) is None:
|
||||||
requested_histories[addr] = result
|
self.interface.send([('blockchain.address.get_history', [addr])], 'synchronizer')
|
||||||
|
requested_histories[addr] = result
|
||||||
|
|
||||||
elif method == 'blockchain.address.get_history':
|
elif method == 'blockchain.address.get_history':
|
||||||
addr = params[0]
|
addr = params[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user