eth: implement eth66 (#22241)
* eth/protocols/eth: split up the eth protocol handlers * eth/protocols/eth: define eth-66 protocol messages * eth/protocols/eth: poc implement getblockheaders on eth/66 * eth/protocols/eth: implement remaining eth-66 handlers * eth/protocols: define handler map for eth 66 * eth/downloader: use protocol constants from eth package * eth/protocols/eth: add ETH66 capability * eth/downloader: tests for eth66 * eth/downloader: fix error in tests * eth/protocols/eth: use eth66 for outgoing requests * eth/protocols/eth: remove unused error type * eth/protocols/eth: define protocol length * eth/protocols/eth: fix pooled tx over eth66 * protocols/eth/handlers: revert behavioural change which caused tests to fail * eth/downloader: fix failing test * eth/protocols/eth: add testcases + fix flaw with header requests * eth/protocols: change comments * eth/protocols/eth: review fixes + fixed flaw in RequestOneHeader * eth/protocols: documentation * eth/protocols/eth: review concerns about types
Showing
- eth/downloader/downloader_test.go 138 additions, 47 deletionseth/downloader/downloader_test.go
- eth/downloader/peer.go 5 additions, 4 deletionseth/downloader/peer.go
- eth/protocols/eth/handler.go 68 additions, 331 deletionseth/protocols/eth/handler.go
- eth/protocols/eth/handlers.go 510 additions, 0 deletionseth/protocols/eth/handlers.go
- eth/protocols/eth/peer.go 103 additions, 10 deletionseth/protocols/eth/peer.go
- eth/protocols/eth/protocol.go 92 additions, 3 deletionseth/protocols/eth/protocol.go
- eth/protocols/eth/protocol_test.go 200 additions, 0 deletionseth/protocols/eth/protocol_test.go
- p2p/message.go 4 additions, 0 deletionsp2p/message.go
Loading
Please register or sign in to comment