From f81cb04b74c50a05cc62bcd3311a34b57211570b Mon Sep 17 00:00:00 2001 From: Sergi Delgado Segura Date: Mon, 11 Nov 2019 14:03:18 +0000 Subject: [PATCH] Fixes get_distance_to_tip --- pisa/block_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisa/block_processor.py b/pisa/block_processor.py index c44ead1..e75895d 100644 --- a/pisa/block_processor.py +++ b/pisa/block_processor.py @@ -72,7 +72,7 @@ class BlockProcessor: chain_tip = self.get_best_block_hash() chain_tip_height = self.get_block(chain_tip).get("height") - target_block = self.get_block(target_block_hash).get("height") + target_block = self.get_block(target_block_hash) if target_block is not None: target_block_height = target_block.get("height")