From: ThomasV Date: Mon, 29 Apr 2013 17:16:37 +0000 (+0400) Subject: don't remove dupes in touched_addresses, it is wasteful X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=86b0c5b5b0e5a3e072104d3fbde3927bb584f699;hp=f554bc782cc67158f5b8b79d54d7d5c821aa5b6e;p=electrum-server.git don't remove dupes in touched_addresses, it is wasteful --- diff --git a/backends/bitcoind/blockchain_processor.py b/backends/bitcoind/blockchain_processor.py index 0ec2407..756946d 100644 --- a/backends/bitcoind/blockchain_processor.py +++ b/backends/bitcoind/blockchain_processor.py @@ -842,7 +842,8 @@ class BlockchainProcessor(Processor): if addr not in l: l.append(addr) self.mempool_addresses[tx_hash] = l - if addr not in touched_addresses: touched_addresses.append(addr) + #if addr not in touched_addresses: + touched_addresses.append(addr) for x in tx.get('outputs'): addr = x.get('address') @@ -850,7 +851,8 @@ class BlockchainProcessor(Processor): if addr not in l: l.append(addr) self.mempool_addresses[tx_hash] = l - if addr not in touched_addresses: touched_addresses.append(addr) + #if addr not in touched_addresses: + touched_addresses.append(addr) self.mempool_hashes.append(tx_hash) @@ -862,7 +864,8 @@ class BlockchainProcessor(Processor): if tx_hash not in self.mempool_hashes: self.mempool_addresses.pop(tx_hash) for addr in addresses: - if addr not in touched_addresses: touched_addresses.append(addr) + #if addr not in touched_addresses: + touched_addresses.append(addr) # rebuild mempool histories new_mempool_hist = {}