-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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/internal/ethtest: use shared message types #22315
cmd/devp2p/internal/ethtest: use shared message types #22315
Conversation
cmd/devp2p/internal/ethtest/types.go
Outdated
Hash common.Hash // Hash of one particular block being announced | ||
Number uint64 // Number of one particular block being announced | ||
type NewBlockHashes struct { | ||
*eth.NewBlockHashesPacket |
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.
Might be better not to embed it here. If you just use
type NewBlockHashes eth.NewBlockHashesPacket
you can still use the fields of the upstream definition, but don't need to wrap all the constructor call sites
270c44e
to
e3505e2
Compare
e3505e2
to
5b0e3cb
Compare
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.
Looks very good now, just need to remove this extra type.
This updates the eth protocol test suite to use the message type definitions of the 'production' protocol implementation in eth/protocols/eth.
No description provided.