go-ethereum/eth/protocols/eth
Felix Lange 9064038a86
consensus/beacon: remove TestingTTDBlock (#31153)
This removes the method `TestingTTDBlock` introduced by #30744. It was
added to make the beacon consensus engine aware of the merge block in
tests without relying on the total difficulty. However, tracking the
merge block this way is very annoying. We usually configure forks in the
`ChainConfig`, but the method is on the consensus engine, which isn't
always created in the same place. By sidestepping the `ChainConfig` we
don't get the usual fork-order checking, so it's possible to enable the
merge before the London fork, for example. This in turn can lead to very
hard-to-debug outputs and validation errors.

So here I'm changing the consensus engine to check the
`MergeNetsplitBlock` instead. Alternatively, we assume a network is
merged if it has a `TerminalTotalDifficulty` of zero, which is a very
common configuration in tests.
2025-02-11 13:44:25 +01:00
..
broadcast.go consensus, cmd, core, eth: remove support for non-merge mode of operation (#29169) 2024-03-05 16:13:28 +02:00
discovery.go eth: dial nodes from discv5 (#30302) 2024-08-15 22:14:42 +02:00
dispatcher.go eth/protocols/eth: prevent hanging dispatch (#30918) 2025-01-06 16:31:53 +01:00
handler.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
handler_test.go consensus/beacon: remove TestingTTDBlock (#31153) 2025-02-11 13:44:25 +01:00
handlers.go eth/protocols/eth: remove Requests in block body (#30562) 2024-10-10 10:47:40 +02:00
handshake.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
handshake_test.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
metrics.go metrics, cmd/geth: change init-process of metrics (#30814) 2024-12-10 13:27:29 +01:00
peer.go all: nuke total difficulty (#30744) 2025-01-28 18:55:41 +01:00
peer_test.go eth: implement eth/68 (#25980) 2022-10-31 16:23:26 +02:00
protocol.go eth/protocols/eth: remove Requests in block body (#30562) 2024-10-10 10:47:40 +02:00
protocol_test.go cmd/devp2p, eth: drop eth/66 (#28239) 2023-10-03 15:03:19 +03:00
tracker.go eth/protocols, prp/tracker: add support for req/rep rtt tracking (#22608) 2021-04-22 11:42:46 +03:00