Skip to content

Commit

Permalink
use undelying height_to_hash to check main chain
Browse files Browse the repository at this point in the history
  • Loading branch information
almogdepaz committed Jan 20, 2025
1 parent fa323f4 commit 275369e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/full_node/full_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,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:
Expand Down

0 comments on commit 275369e

Please sign in to comment.