-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Validate chain sync response indices when fetching messages #3939
Conversation
Note: needs to be tested on the live network; will test in my node after initial review. |
4f851e9
to
dcf2735
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.
Removed the message validation from the protocol and made it an API option for the GetChainMessages
case. We will always validate the integrity of CompactedMessages
, either with blocks retrieved through the protocol or provided by the caller. There is no Validate
option then, it's mandatory.
LGTM, but someone else needs to review since I'm too involved in the PR now.
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.
(Seems to sync fine)
On top of #3887
stricter validation of response indicies