stop server if txindex not used
authorThomasV <thomasv@gitorious>
Sun, 24 Nov 2013 20:30:47 +0000 (00:30 +0400)
committerThomasV <thomasv@gitorious>
Sun, 24 Nov 2013 20:30:47 +0000 (00:30 +0400)
backends/bitcoind/blockchain_processor.py

index 03de6ee..68b8117 100644 (file)
@@ -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