electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d82896dadf673df1d7448372bbaca1780f4288b6
parent b3529147d58290411620d15ab1fc9590a103bbfe
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  6 Nov 2015 18:00:19 +0100

fix #1525 (part 2)

Diffstat:
Mlib/synchronizer.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/synchronizer.py b/lib/synchronizer.py @@ -73,14 +73,15 @@ class Synchronizer(ThreadJob): if not params: return addr = params[0] - if addr in self.requested_addrs: # Notifications won't be in - self.requested_addrs.remove(addr) history = self.wallet.get_address_history(addr) if self.wallet.get_status(history) != result: if self.requested_histories.get(addr) is None: + self.requested_histories[addr] = result self.network.send([('blockchain.address.get_history', [addr])], self.addr_history_response) - self.requested_histories[addr] = result + # remove addr from list only after it is added to requested_histories + if addr in self.requested_addrs: # Notifications won't be in + self.requested_addrs.remove(addr) def addr_history_response(self, response): params, result = self.parse_response(response)