git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e23814b
)
fix: set is not a list
author
ThomasV
<thomasv@gitorious>
Sat, 6 Apr 2013 14:15:20 +0000 (18:15 +0400)
committer
ThomasV
<thomasv@gitorious>
Sat, 6 Apr 2013 14:15:20 +0000 (18:15 +0400)
backends/bitcoind/blockchain_processor.py
patch
|
blob
|
history
diff --git
a/backends/bitcoind/blockchain_processor.py
b/backends/bitcoind/blockchain_processor.py
index
e93439e
..
32cc4f2
100644
(file)
--- a/
backends/bitcoind/blockchain_processor.py
+++ b/
backends/bitcoind/blockchain_processor.py
@@
-266,14
+266,14
@@
class BlockchainProcessor(Processor):
# sort history, because redeeming transactions are next to the corresponding txout
hist.sort(key=lambda tup: tup[2])
- # uniqueness
- hist = set(map(lambda x: (x[0], x[2]), hist))
-
# add memory pool
with self.mempool_lock:
for txid in self.mempool_hist.get(addr, []):
hist.append((txid, 0, 0))
+ # uniqueness
+ hist = set(map(lambda x: (x[0], x[2]), hist))
+
# convert to dict
hist = map(lambda x: {'tx_hash': x[0], 'height': x[1]}, hist)