Fixes get_distance_to_tip

This commit is contained in:
Sergi Delgado Segura
2019-11-11 14:03:18 +00:00
parent fb7dfd4df8
commit f81cb04b74

View File

@@ -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")