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

Weaken GRANDPA proof validation #497

Merged
merged 1 commit into from
May 15, 2024

Conversation

vmarkushin
Copy link
Collaborator

verify_with_voter_set function is performing additional validation that go beyond the standard implementation (section 2.3), possibly leading to proofs not being accepted while valid.

Instead, we need to accept all finality justifications where is_valid is true. The equivocations or other misbehaviors detected in the justifications must be handled too but not should not reject the proof.

`verify_with_voter_set` function is performing additional validation that go beyond the [standard implementation](https://raw.githubusercontent.com/w3f/consensus/master/pdf/grandpa.pdf) (section 2.3), possibly leading to proofs not being accepted while valid.

Instead, we need to accept all finality justifications where is_valid is true. The equivocations or other misbehaviors detected in the justifications must be handled too but not should not reject the proof.
@vmarkushin vmarkushin added the Bug Something isn't working label May 15, 2024
@vmarkushin vmarkushin self-assigned this May 15, 2024
@vmarkushin vmarkushin merged commit 063a708 into master May 15, 2024
2 checks passed
@vmarkushin vmarkushin deleted the vmarkushin/weaken-grandpa-proof-validation branch May 15, 2024 15:28
@kirillt
Copy link

kirillt commented May 26, 2024

Related discussion for reference: https://substrate.stackexchange.com/questions/8701/grandpa-finality-proofs-validation-and-equivocations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants