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

[Bug]: BlockID flag must be considered in Vote Extension Validation #17393

Closed
nivasan1 opened this issue Aug 15, 2023 · 0 comments · Fixed by #17394
Closed

[Bug]: BlockID flag must be considered in Vote Extension Validation #17393

nivasan1 opened this issue Aug 15, 2023 · 0 comments · Fixed by #17394
Labels

Comments

@nivasan1
Copy link
Contributor

What happened?

Problem

  • the ValidateVoteExtensionFn in abci_utils.go attempts to check VoteExtensionSignature / VoteExtension even for votes that have the BlockID_Absent or BlockID_Nil, this should not be happening as the VoteExtension / Signature for these vote-types is nil, and will fail the check.

Consequences

  • This leads to a liveness failure for chains using this check, as if every height, nodes that fail to include a pre-commit from any validator in their injected last-commit-info will cause the above check to fail, and the proposal to be rejected (in process or prepare (depends on implementation))

  • p.s: from @SkipProtocol w/ ❤️

Cosmos SDK Version

v0.50.x

How to reproduce?

To Reproduce

  • During any round of consensus, if any active validator goes down (or fails to participate in consensus / get their vote included in LastCommit) the block at the next height will fail to pass Process / Prepare proposal w/ the given error
    Screen Shot 2023-08-15 at 7 38 09 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant