Repository navigation
consensus: bring the Purley vote extension verification into develop - #56
Merged
Merged
Conversation
Verify the extension of a precommit for the previous height before adding it to LastCommit, and skip the check for votes LastCommit already holds, since gossip repeats each late precommit. The extension check on current height votes moves into a shared verifyVoteExtension helper. Also covers IsBehind being called from ABCI while the consensus state lock is held.
…on-verify-v0.3.11 consensus: verify vote extensions on late precommits
…ension test/e2e: accept late precommit extensions for the previous height
cffls
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bring the Purley consensus change from
v0.3.14-polygonintodevelop:LastCommit, and skip the check for votesLastCommitalready holds, since gossip repeats each late precommit (consensus: verify vote extensions on late precommits #54).verifyVoteExtensionhelper for the current-height and late-vote paths, plus a test thatIsBehindreturns when called from ABCI while the consensus state lock is held.VerifyVoteExtension(test/e2e: accept late precommit extensions for the previous height #55), which the new check needs..golangci.ymlfor the new test file.v0.3.14-polygonwas cut fromv0.3.11-polygon, the last cometbft release used in production, sodevelop(v0.3.12,v0.3.13) did not have this change. It merges cleanly. The Go code is the code heimdall-v2v0.14.0runs on Amoy and mainnet.Executed tests
developchecked withgit merge-tree: clean.e2e-testpass (e2e after test/e2e: accept late precommit extensions for the previous height #55).Rollout notes
Consensus-affecting for anyone building heimdall-v2 against
develop: heimdall-v2v0.14.0and later already require this behaviour. After the merge, the next release fromdevelopcarries it. No change for operators running released heimdall-v2 binaries.