Skip to content

consensus: bring the Purley vote extension verification into develop - #56

Merged
kamuikatsurgi merged 4 commits into
developfrom
v0.3.14-polygon-candidate
Nov 20, 2026
Merged

kamuikatsurgi merged 4 commits into
developfrom
v0.3.14-polygon-candidate

Conversation

@kamuikatsurgi

Copy link
Copy Markdown
Member

Summary

Bring the Purley consensus change from v0.3.14-polygon into develop:

  • Verify the vote 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 (consensus: verify vote extensions on late precommits #54).
  • A shared verifyVoteExtension helper for the current-height and late-vote paths, plus a test that IsBehind returns when called from ABCI while the consensus state lock is held.
  • The e2e test app accepts the previous height at VerifyVoteExtension (test/e2e: accept late precommit extensions for the previous height #55), which the new check needs.
  • A test-allow-list entry in .golangci.yml for the new test file.

v0.3.14-polygon was cut from v0.3.11-polygon, the last cometbft release used in production, so develop (v0.3.12, v0.3.13) did not have this change. It merges cleanly. The Go code is the code heimdall-v2 v0.14.0 runs on Amoy and mainnet.

Executed tests

Rollout notes

Consensus-affecting for anyone building heimdall-v2 against develop: heimdall-v2 v0.14.0 and later already require this behaviour. After the merge, the next release from develop carries it. No change for operators running released heimdall-v2 binaries.

kamuikatsurgi and others added 4 commits November 18, 2026 11:44
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
@kamuikatsurgi
kamuikatsurgi merged commit 17bd031 into develop Nov 20, 2026
18 checks passed
@kamuikatsurgi
kamuikatsurgi deleted the v0.3.14-polygon-candidate branch November 20, 2026 02:26
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.

2 participants