mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 16:18:08 -05:00
fix: use parent hash for chain traversal (#9790)
This commit is contained in:
@@ -166,7 +166,7 @@ impl TreeState {
|
||||
// we have a reorg
|
||||
todo!("handle reorg")
|
||||
}
|
||||
let parent_block = self.blocks_by_hash.get(&new_head).cloned()?;
|
||||
let parent_block = self.blocks_by_hash.get(&parent.hash).cloned()?;
|
||||
parent = parent_block.block.num_hash();
|
||||
new_chain.push(parent_block);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user