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

cmd/devp2p: add old block announcement test to eth test suite #22474

Merged
merged 4 commits into from
Mar 20, 2021

Conversation

renaynay
Copy link
Contributor

Add old block announcement test to eth test suite, checks to make sure old block announcement isn't propagated

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally lgtm, some nits though

cmd/devp2p/internal/ethtest/suite.go Outdated Show resolved Hide resolved
cmd/devp2p/internal/ethtest/suite.go Outdated Show resolved Hide resolved
cmd/devp2p/internal/ethtest/eth66_suite.go Outdated Show resolved Hide resolved
cmd/devp2p/internal/ethtest/eth66_suite.go Outdated Show resolved Hide resolved
@@ -205,6 +206,35 @@ func (s *Suite) TestLargeAnnounce_66(t *utesting.T) {
}
}

func (s *Suite) TestOldAnnounce_66(t *utesting.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the code here identical to TestOldAnnounce, with the exception of s.setupConnection66 instead of s.setupConnection ?
I'm thinking you could maybe reduce it so there's one implementation which takes either a setupConn function or a boolean to distinguish which to use?

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@holiman holiman added this to the 1.10.2 milestone Mar 20, 2021
@holiman holiman merged commit 36b51b8 into ethereum:master Mar 20, 2021
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
…um#22474)

Add old block announcement test to eth test suite, checks to make sure old block announcement isn't propagated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants