reth icon indicating copy to clipboard operation
reth copied to clipboard

fix: Chain::split returns NoSplitPending for block number > tip

Open fgimenez opened this issue 1 year ago • 0 comments

If the function split() is called with a block number greater than the tip it will consider this split valid and treat it the same as splitting the canonical head.

If the block_number > chain_tip then it implies the block is not in this chain and the chain cannot be split, with these changes a ChainSplit::NoSplitPending is returned (same as with missing hash).

fgimenez avatar May 16 '24 08:05 fgimenez