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

Validate chain sync response indices when fetching messages #3939

Merged
merged 4 commits into from
Sep 23, 2020

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Sep 21, 2020

On top of #3887

stricter validation of response indicies

@vyzo
Copy link
Contributor Author

vyzo commented Sep 21, 2020

Note: needs to be tested on the live network; will test in my node after initial review.

chain/exchange/protocol.go Outdated Show resolved Hide resolved
@vyzo vyzo requested a review from schomatis September 21, 2020 17:39
@schomatis schomatis self-assigned this Sep 22, 2020
@schomatis schomatis removed their assignment Sep 22, 2020
Copy link
Contributor

@schomatis schomatis left a 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.

@vyzo vyzo dismissed schomatis’s stale review September 23, 2020 05:03

addressed by schomatis himself

Base automatically changed from feat/parallel-sync to master September 23, 2020 17:24
Copy link
Contributor

@magik6k magik6k left a 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)

@arajasek arajasek merged commit e09d291 into master Sep 23, 2020
@arajasek arajasek deleted the fix/chain-sync-validation branch September 23, 2020 21:35
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.

4 participants