eth Protocol¶
The eth/68 wire protocol: message types, handshake with TD exchange, peer handling, and the devp2p test suite.
| Nature | Count |
|---|---|
| 🔄 Revived (from upstream pre-purge) | 26 |
| ✏️ In-place (modified on upstream) | 9 |
| 🆕 New (fork-only, no upstream pedigree) | 5 |
🔄 Revived (from upstream pre-purge)¶
Code upstream deleted, transplanted back from the commit just before its removal.
| Change | Kind | Origin | Δ vs origin | |
|---|---|---|---|---|
BlockBodiesResponse.Unpack |
symbol | purge_msgdecode | +8 -10 | view |
Chain.TD |
symbol | purge4 | ✅ | view |
ETH68 const + protocolLengths |
symbol | purge_eth68 | +1 -5 | view |
NewBlockHashesPacket |
symbol | purge_eth68 | +1 -1 | view |
NewBlockPacket |
symbol | purge_eth68 | ✅ | view |
Peer.AsyncSendNewBlock |
symbol | purge1 | +2 -2 | view |
Peer.AsyncSendNewBlockHash |
symbol | purge1 | +2 -2 | view |
Peer.Handshake68PoW |
symbol | purge_eth68 | +25 -11 | view |
Peer.Head |
symbol | purge1 | +4 -4 | view |
Peer.InitPoWExtension |
symbol | purge1 | +10 -1 | view |
Peer.KnownBlock |
symbol | purge1 | +1 -1 | view |
Peer.SendNewBlock |
symbol | purge1 | +1 -1 | view |
Peer.SendNewBlockHashes |
symbol | purge1 | +1 -1 | view |
Peer.SetHead |
symbol | purge1 | +4 -4 | view |
Peer.broadcastBlocksPoW |
symbol | purge1 | +4 -4 | view |
Peer.markBlock |
symbol | purge1 | +1 -1 | view |
Peer.readStatus68 |
symbol | purge_eth68 | +1 -0 | view |
PoWPeerExtension |
symbol | purge1 | +4 -0 | view |
StatusPacket68 |
symbol | purge_eth68 | +2 -1 | view |
blockPropagation |
symbol | purge1 | ✅ | view |
ethtest testdata |
file | purge1 | +22 -9 | view |
handleNewBlockPow |
symbol | purge1 | +3 -3 | view |
handleNewBlockhashesPow |
symbol | purge1 | +2 -2 | view |
peer PoW consts |
symbol | purge1 | +0 -12 | view |
peerSet.peerWithHighestTD |
symbol | purge1 | ✅ | view |
peerSet.peersWithoutBlock |
symbol | purge1 | ✅ | view |
✏️ In-place (modified on upstream)¶
Upstream files the fork edits in place; the diff is against upstream v1.17.3.
| Change | Kind | Origin | Δ vs origin | |
|---|---|---|---|---|
cmd/devp2p/internal/ethtest/protocol.go |
file | upstream v1.17.3 | +1 -1 | view |
cmd/devp2p/internal/ethtest/snap.go |
file | upstream v1.17.3 | +15 -15 | view |
eth/peerset.go |
file | upstream v1.17.3 | +1 -1 | view |
eth/protocols/eth/handler.go |
file | upstream v1.17.3 | +12 -4 | view |
eth/protocols/eth/handshake.go |
file | upstream v1.17.3 | +12 -1 | view |
eth/protocols/eth/peer.go |
file | upstream v1.17.3 | +2 -0 | view |
ethtest conn.go |
file | upstream v1.17.3 | +18 -17 | view |
ethtest suite.go |
file | upstream v1.17.3 | +4 -1 | view |
ethtest suite_test.go |
file | upstream v1.17.3 | +16 -39 | view |
🆕 New (fork-only)¶
Files with no upstream pedigree — the highest-scrutiny changes.
| Change | Kind | Origin | Δ vs origin | |
|---|---|---|---|---|
GetProtocolVersions |
symbol | — | 🆕 | view |
eth/protocols/eth/handshake_etc_test.go |
file | — | 🆕 | view |
eth/protocols/eth/handshake_pow.go |
file | — | 🆕 | view |
eth/protocols/eth/protocol_etc_test.go |
file | — | 🆕 | view |
eth/protocols/eth/protocol_pow.go |
file | — | 🆕 | view |