go-ethereum/eth/protocols
Marius van der Wijden b0b67be0a2
all: remove forkchoicer and reorgNeeded (#29179)
This PR changes how sidechains are handled. 

Before the merge, it was possible to import a chain with lower td and not set it as canonical. After the merge, we expect every chain that we get via InsertChain to be canonical. Non-canonical blocks can still be inserted
with InsertBlockWIthoutSetHead.

If during the InsertChain, the existing chain is not canonical anymore, we mark it as a sidechain and send the SideChainEvents normally.
2024-09-04 15:03:06 +02:00
..
eth all: remove forkchoicer and reorgNeeded (#29179) 2024-09-04 15:03:06 +02:00
snap all: remove forkchoicer and reorgNeeded (#29179) 2024-09-04 15:03:06 +02:00