Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth: implement eth66 #22241

Merged
merged 20 commits into from
Feb 18, 2021
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
7999e70
eth/protocols/eth: split up the eth protocol handlers
holiman Nov 24, 2020
5f0af8b
eth/protocols/eth: define eth-66 protocol messages
holiman Jan 26, 2021
d139b26
eth/protocols/eth: poc implement getblockheaders on eth/66
holiman Jan 26, 2021
114e366
eth/protocols/eth: implement remaining eth-66 handlers
holiman Jan 26, 2021
80f0f95
eth/protocols: define handler map for eth 66
holiman Jan 26, 2021
2b1477b
eth/downloader: use protocol constants from eth package
holiman Jan 26, 2021
9e8116f
eth/protocols/eth: add ETH66 capability
holiman Jan 26, 2021
ad57ef8
eth/downloader: tests for eth66
holiman Jan 26, 2021
e7858d7
eth/downloader: fix error in tests
holiman Jan 26, 2021
6e1bfe4
eth/protocols/eth: use eth66 for outgoing requests
holiman Jan 26, 2021
30f9649
eth/protocols/eth: remove unused error type
holiman Jan 26, 2021
bc10f94
eth/protocols/eth: define protocol length
holiman Jan 26, 2021
b7e8558
eth/protocols/eth: fix pooled tx over eth66
holiman Jan 27, 2021
0c03abc
protocols/eth/handlers: revert behavioural change which caused tests …
holiman Jan 27, 2021
0a83e81
eth/downloader: fix failing test
holiman Jan 27, 2021
5f62d2e
eth/protocols/eth: add testcases + fix flaw with header requests
holiman Jan 28, 2021
fb7c0d8
eth/protocols: change comments
holiman Jan 28, 2021
4ac8b82
eth/protocols/eth: review fixes + fixed flaw in RequestOneHeader
holiman Feb 8, 2021
7a1b727
eth/protocols: documentation
holiman Feb 18, 2021
c41ffe6
eth/protocols/eth: review concerns about types
holiman Feb 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
eth/protocols/eth: define protocol length
  • Loading branch information
holiman committed Feb 18, 2021
commit bc10f94a43358481a653933e6972a0a6277a2541
2 changes: 1 addition & 1 deletion eth/protocols/eth/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var ProtocolVersions = []uint{ETH66, ETH65, ETH64}

// protocolLengths are the number of implemented message corresponding to
// different protocol versions.
var protocolLengths = map[uint]uint64{ETH65: 17, ETH64: 17}
var protocolLengths = map[uint]uint64{ETH66: 17, ETH65: 17, ETH64: 17}

// maxMessageSize is the maximum cap on the size of a protocol message.
const maxMessageSize = 10 * 1024 * 1024
Expand Down