-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
Conversation
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.
Generally lgtm, some nits though
@@ -205,6 +206,35 @@ func (s *Suite) TestLargeAnnounce_66(t *utesting.T) { | |||
} | |||
} | |||
|
|||
func (s *Suite) TestOldAnnounce_66(t *utesting.T) { |
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.
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?
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.
LGTM
…um#22474) Add old block announcement test to eth test suite, checks to make sure old block announcement isn't propagated
Add old block announcement test to eth test suite, checks to make sure old block announcement isn't propagated