From 0e6d867f6eb978be38aa364494c89163c1156404 Mon Sep 17 00:00:00 2001 From: almogdepaz Date: Mon, 20 Jan 2025 11:23:31 +0200 Subject: [PATCH] use undelying height_to_hash to check main chain --- chia/full_node/full_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chia/full_node/full_node.py b/chia/full_node/full_node.py index 9958016cf45a..c0811eda79fe 100644 --- a/chia/full_node/full_node.py +++ b/chia/full_node/full_node.py @@ -1545,7 +1545,7 @@ async def skip_blocks( # we have already validated this block once, no need to do it again. # however, if this block is not part of the main chain, we need to # update the fork context with its additions and removals - if blockchain.height_to_hash(block.height) == header_hash: + if self.blockchain.height_to_hash(block.height) == header_hash: # we're on the main chain, just fast-forward the fork height fork_info.reset(block.height, header_hash) else: