fix
authorThomasV <thomasv1@gmx.de>
Fri, 24 Jan 2014 15:44:29 +0000 (16:44 +0100)
committerThomasV <thomasv1@gmx.de>
Fri, 24 Jan 2014 15:44:29 +0000 (16:44 +0100)
backends/bitcoind/blockchain_processor.py

index 1de5db6..37778b0 100644 (file)
@@ -640,8 +640,9 @@ class BlockchainProcessor(Processor):
                     self.mtimes['import'] = 0
 
                 if prh:
-                    if prh != self.storage.get_root_hash().encode('hex'):
-                        print_log("root hash error", prh)
+                    rh = self.storage.get_root_hash().encode('hex')
+                    if prh != rh:
+                        print_log("root hash error", prh, rh)
                         self.shared.stop()
                         raise
                     prh = None