git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
83c2306
)
Fix reorg issues
master
author
CryptoManiac
<balthazar@yandex.ru>
Thu, 30 Jul 2015 18:57:43 +0000 (21:57 +0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Thu, 30 Jul 2015 18:57:43 +0000 (21:57 +0300)
backends/bitcoind/blockchain_processor.py
patch
|
blob
|
history
diff --git
a/backends/bitcoind/blockchain_processor.py
b/backends/bitcoind/blockchain_processor.py
index
1b8d92f
..
1c3a341
100644
(file)
--- a/
backends/bitcoind/blockchain_processor.py
+++ b/
backends/bitcoind/blockchain_processor.py
@@
-627,10
+627,11
@@
class BlockchainProcessor(Processor):
self.up_to_date = False
try:
next_block = self.bitcoind('getblockbynumber', [self.storage.height + 1, True])
- next_block_hash = next_block.get('hash')
except BaseException, e:
+ next_block = self.bitcoind('getblock', [self.storage.last_hash, True])
revert = True
- next_block = next_block.get(self.storage.last_hash)
+
+ next_block_hash = next_block.get('hash')
self.mtime('daemon')