bug: wrong name
[electrum-server.git] / backends / bitcoind / blockchain_processor.py
index f92f6e4..e21ed89 100644 (file)
@@ -602,7 +602,7 @@ class BlockchainProcessor(Processor):
             # not done..
             self.up_to_date = False
             next_block_hash = self.bitcoind('getblockhash', [self.height+1])
-            next_block = self.bitcoind('getblock', [block_hash, 1])
+            next_block = self.bitcoind('getblock', [next_block_hash, 1])
 
             if next_block.get('previousblockhash') == self.last_hash: