mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(tree): retain max(additional, max_reorg_depth) block hashes (#4612)
This commit is contained in:
@ -56,7 +56,7 @@ pub trait BlockchainTreeEngine: BlockchainTreeViewer + Send + Sync {
|
||||
/// tree by attempting to connect the buffered blocks to canonical hashes.
|
||||
///
|
||||
///
|
||||
/// `N` is the `max_reorg_depth` plus the number of block hashes needed to satisfy the
|
||||
/// `N` is the maximum of `max_reorg_depth` and the number of block hashes needed to satisfy the
|
||||
/// `BLOCKHASH` opcode in the EVM.
|
||||
///
|
||||
/// # Note
|
||||
@ -71,7 +71,7 @@ pub trait BlockchainTreeEngine: BlockchainTreeViewer + Send + Sync {
|
||||
/// Reads the last `N` canonical hashes from the database and updates the block indices of the
|
||||
/// tree by attempting to connect the buffered blocks to canonical hashes.
|
||||
///
|
||||
/// `N` is the `max_reorg_depth` plus the number of block hashes needed to satisfy the
|
||||
/// `N` is the maximum of `max_reorg_depth` and the number of block hashes needed to satisfy the
|
||||
/// `BLOCKHASH` opcode in the EVM.
|
||||
fn connect_buffered_blocks_to_canonical_hashes(&self) -> RethResult<()>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user