Skip to content

Commit

Permalink
use undelying height_to_hash to check main chain (#19220)
Browse files Browse the repository at this point in the history
Co-authored-by: almogdepaz <[email protected]>
  • Loading branch information
arvidn and almogdepaz authored Feb 5, 2025
1 parent ec77339 commit 7e265e3
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 @@ -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:
Expand Down

0 comments on commit 7e265e3

Please sign in to comment.