-
Notifications
You must be signed in to change notification settings - Fork 112
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(network/messages): normalize from_block
field to be uint
or common.Hash
#4191
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.
Looks good, just a few small questions/comments
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.
only nits except for the issue/question regarding SCALE encoding the block number
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!
Changes
Changes how we deal with
BlockRequest
messages, inspired by #4114 (comment)from_block
protobuf message fieldint/uint32/uint
which has problem considering that the default block number type is uint and we should do casting fromuint
touint32
.Tests
go test -tags integration github.com/ChainSafe/gossamer
Issues
N/A