Skip to content

feat(vote extensions)!: support non replay-protected vote extensions - #4688

Merged
jmalicevic merged 36 commits into
mainfrom
bernd/4682-nrp-vote-extensions
Dec 20, 2024
Merged

jmalicevic merged 36 commits into
mainfrom
bernd/4682-nrp-vote-extensions

Conversation

@bermuell

@bermuell bermuell commented Dec 18, 2024 •

Copy link
Copy Markdown
Contributor

Closes: #4682

Add support for non replay-protected vote extensions. Non replay-protected vote extensions are not wrapped with additional meta information such as chain-id, height and round (see CanonicalVoteExtension) used for replay-protection.
These non replay-protected vote extensions are optional.

Note:

  • New v2 for proto files of abci and cometbft/types added. v2 is identical to v1 + changes for vote extensions as seen in commit 53ea5be26
  • Bumps ABCI version to v2.3.0

PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@bermuell bermuell self-assigned this Dec 18, 2024
@bermuell
bermuell force-pushed the bernd/4682-nrp-vote-extensions branch 4 times, most recently from 041e969 to 28f4319 Compare December 18, 2024 13:03
@bermuell
bermuell marked this pull request as ready for review December 18, 2024 13:46
@bermuell
bermuell requested review from a team as code owners December 18, 2024 13:46
@bermuell
bermuell requested review from a team and sergio-mena December 18, 2024 13:46
Comment thread spec/core/data_structures.md Resolved
Comment thread state/execution.go Resolved
Co-authored-by: Jasmina Malicevic <[email protected]>
@bermuell
bermuell requested a review from jmalicevic December 19, 2024 15:59

@melekes melekes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bermuell 👍

Comment thread proto/cometbft/types/v2/types.proto Resolved
Comment thread types/vote.go Resolved
Comment thread types/vote.go Resolved
Comment thread UPGRADING.md Resolved
Comment thread UPGRADING.md Resolved
Bernd Mueller and others added 2 commits December 20, 2024 10:17
Comment thread privval/file_test.go Resolved
Comment thread test/e2e/app/app.go Resolved
@melekes melekes added the breaking A breaking change label Dec 20, 2024

@sergio-mena sergio-mena left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent job 🚀

@jmalicevic
jmalicevic added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit a95c2d1 Dec 20, 2024
@jmalicevic
jmalicevic deleted the bernd/4682-nrp-vote-extensions branch December 20, 2024 15:15
github-merge-queue Bot pushed a commit that referenced this pull request Dec 23, 2024
…to Hex (#4721)

PR #4688 increased the size of vote extensions used in the e2e app which
resulted in e2e tests failing because the messages were too big.

This PR does two things:
- Does not convert the Non replay-protected vote extensions to a Hex
String (as this doubles their size).
- Uses a lower value for the generated VEs because this value will in
practice be doubled (if the configuration size is 256, we will have
`VoteExtension` of size 256 and `NonRpExtension` of size 256).


---

#### PR checklist

- [ ] Tests written/updated
- [ ] Changelog entry added in `.changelog` (we use
[unclog](https://github.com/informalsystems/unclog) to manage our
changelog)
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking A breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow for a form of vote extensions that are not replay protected

4 participants