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

fix(header): soft failure is only for not enough voting power #3769

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

cristaloleg
Copy link
Contributor

We should set libhead.VerifyError.SoftFailure to true only when error is core.ErrNotEnoughVotingPowerSigned. In other words, this PR fixes a bug when we treat double vote and invalid signature as a soft failure (when it's not).

CC: @vgonkivs @Wondertan

@cristaloleg cristaloleg added the kind:fix Attached to bug-fixing PRs label Sep 24, 2024
@cristaloleg cristaloleg self-assigned this Sep 24, 2024
@walldiss walldiss enabled auto-merge (squash) September 25, 2024 11:57
@walldiss walldiss merged commit 7eca603 into main Sep 25, 2024
21 checks passed
@walldiss walldiss deleted the fix/header-valset-softfail branch September 25, 2024 12:06
walldiss pushed a commit to walldiss/celestia-node that referenced this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:fix Attached to bug-fixing PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants