git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
307de09
)
Merge pull request #27 from jkozera/patch-2
author
ThomasV
<thomasv1@gmx.de>
Mon, 15 Apr 2013 13:32:13 +0000 (06:32 -0700)
committer
ThomasV
<thomasv1@gmx.de>
Mon, 15 Apr 2013 13:32:13 +0000 (06:32 -0700)
Order transactions from the same block correctly
backends/bitcoind/blockchain_processor.py
patch
|
blob
|
history
diff --git
a/backends/bitcoind/blockchain_processor.py
b/backends/bitcoind/blockchain_processor.py
index
9a14ded
..
c5ed9c5
100644
(file)
--- a/
backends/bitcoind/blockchain_processor.py
+++ b/
backends/bitcoind/blockchain_processor.py
@@
-340,7
+340,7
@@
class BlockchainProcessor(Processor):
for i in range(l-1, -1, -1):
item = serialized_hist[80*i:80*(i+1)]
item_height = int(rev_hex(item[36:39].encode('hex')), 16)
- if item_height < tx_height:
+ if item_height <= tx_height:
serialized_hist = serialized_hist[0:80*(i+1)] + s + serialized_hist[80*(i+1):]
break
else: