git://git.novaco.in
/
electrum-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ca1cec4
)
stop server if txindex not used
author
ThomasV
<thomasv@gitorious>
Sun, 24 Nov 2013 20:30:47 +0000 (
00:30
+0400)
committer
ThomasV
<thomasv@gitorious>
Sun, 24 Nov 2013 20:30:47 +0000 (
00:30
+0400)
backends/bitcoind/blockchain_processor.py
patch
|
blob
|
history
diff --git
a/backends/bitcoind/blockchain_processor.py
b/backends/bitcoind/blockchain_processor.py
index
03de6ee
..
68b8117
100644
(file)
--- a/
backends/bitcoind/blockchain_processor.py
+++ b/
backends/bitcoind/blockchain_processor.py
@@
-806,6
+806,8
@@
class BlockchainProcessor(Processor):
rawtxdata = []
for ir in r:
if ir['error'] is not None:
+ self.shared.stop()
+ print_log("Error: make sure you run bitcoind with txindex=1; use -reindex if needed.")
raise BaseException(ir['error'])
rawtxdata.append(ir['result'])
block['tx'] = rawtxdata