-
Notifications
You must be signed in to change notification settings - Fork 276
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
feat: implement eth/68 #805
base: develop
Are you sure you want to change the base?
Conversation
just wondering: this makes it easier to track the changes |
There were just a lot of conflicts so I felt it was easier this way. I went back and cherry-picked that commit and updated the branch with a force push. |
how to test
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested. works good.
Just for completeness: I've also tested this with
|
* eth: implement eth/68 * eth/protocols/eth: added tx size to announcement * eth/protocols/eth: check equal lengths on receiving announcement * eth/protocols/eth: add +1 to tx size because of the type byte * eth: happy lint, add eth68 tests, enable eth68 * eth: various nitpick fixes on eth/68 * eth/protocols/eth: fix announced tx size wrt type byte Co-authored-by: MariusVanDerWijden <[email protected]> Co-authored-by: Péter Szilágyi <[email protected]> Conflicts: eth/handler_eth_test.go eth/protocols/eth/handler.go eth/protocols/eth/protocol.go
…ocol (ethereum#28261) * eth: enforce announcement metadatas and drop peers violating the protocol * eth/fetcher: relax eth/68 validation a bit for flakey clients * tests/fuzzers/txfetcher: pull in suggestion from Marius * eth/fetcher: add tests for peer dropping * eth/fetcher: linter linter linter linter linter Conflicts: eth/fetcher/tx_fetcher.go eth/handler.go eth/handler_eth.go
Conflicts: cmd/devp2p/internal/ethtest/chain_test.go cmd/devp2p/internal/ethtest/helpers.go cmd/devp2p/internal/ethtest/snapTypes.go cmd/devp2p/internal/ethtest/suite.go cmd/devp2p/internal/ethtest/types.go cmd/devp2p/rlpxcmd.go
Co-authored-by: Felix Lange <[email protected]> Conflicts: cmd/devp2p/internal/ethtest/helpers.go
eec54c3
1. Purpose or design rationale of this PR
This PR implements the eth/68 protocol from upstream.
Cherry-picked from
I made sure that tests in
eth/fetcher/tx_fetcher_test.go
pass. Tests ineth/fetcher/block_fetcher_test.go
failed already on develop.Similarly, tests in
cmd/devp2p/internal/ethtest/chain_test.go
pass. Tests incmd/devp2p/internal/ethtest/suite_test.go
failed already on develop.Extended tests to also test for new eth/68 protocol negotiation.
2. PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
3. Deployment tag versioning
Has the version in
params/version.go
been updated?4. Breaking change label
Does this PR have the
breaking-change
label?