-
Notifications
You must be signed in to change notification settings - Fork 636
spec: Clearly document the ordering within VoteInfo
and ExtendedVoteInfo
#779
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
Closed
1 of 2 tasks
Tracked by
#24
Labels
abci
Application blockchain interface
good first issue
Good for newcomers
spec
Specification-related
Milestone
Comments
andynog
added a commit
that referenced
this issue
Apr 3, 2024
4 tasks
github-merge-queue bot
pushed a commit
that referenced
this issue
Apr 4, 2024
…r) (#2715) close: #779 This PR adds additional information on `ExtendedCommitInfo` and `CommitInfo` data types about the validator set ordering (total power) guarantees. #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [X] Updated relevant documentation (`docs/` or `spec/`) and code comments - [X] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec
mergify bot
pushed a commit
that referenced
this issue
Apr 4, 2024
…r) (#2715) close: #779 This PR adds additional information on `ExtendedCommitInfo` and `CommitInfo` data types about the validator set ordering (total power) guarantees. #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [X] Updated relevant documentation (`docs/` or `spec/`) and code comments - [X] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec (cherry picked from commit 0349b99)
Merged
4 tasks
andynog
added a commit
that referenced
this issue
Apr 4, 2024
…r) (backport #2715) (#2720) close: #779 This PR adds additional information on `ExtendedCommitInfo` and `CommitInfo` data types about the validator set ordering (total power) guarantees. #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [X] Updated relevant documentation (`docs/` or `spec/`) and code comments - [X] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec <hr>This is an automatic backport of pull request #2715 done by [Mergify](https://mergify.com). Co-authored-by: Andy Nogueira <me@andynogueira.dev>
mergify bot
pushed a commit
that referenced
this issue
Apr 5, 2024
…r) (#2715) close: #779 This PR adds additional information on `ExtendedCommitInfo` and `CommitInfo` data types about the validator set ordering (total power) guarantees. #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [X] Updated relevant documentation (`docs/` or `spec/`) and code comments - [X] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec (cherry picked from commit 0349b99)
Merged
4 tasks
andynog
added a commit
that referenced
this issue
Apr 5, 2024
…r) (backport #2715) (#2724) close: #779 This PR adds additional information on `ExtendedCommitInfo` and `CommitInfo` data types about the validator set ordering (total power) guarantees. #### PR checklist - [ ] Tests written/updated - [ ] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [X] Updated relevant documentation (`docs/` or `spec/`) and code comments - [X] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec <hr>This is an automatic backport of pull request #2715 done by [Mergify](https://mergify.com). Co-authored-by: Andy Nogueira <me@andynogueira.dev>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
abci
Application blockchain interface
good first issue
Good for newcomers
spec
Specification-related
Uh oh!
There was an error while loading. Please reload this page.
Feature Request
Summary
It would be useful if the spec for ABCI 2.0 documented the expected ordering of elements within fields
VoteInfo
andExtendedVoteInfo
in all the methods where these fields appear. Application developers might expects that these elements are ordered deterministically by validator power; if so, the docs should capture it, and if not, we should also state it.Problem Definition
Developers who are integrating v0.38 can be confused about the guarantees on the ordering of elements within
VoteInfo
andExtendedVoteInfo
. There are three ABCI methods concerned here:RequestPrepareProposal
andRequestProcessProposal
andRequestFinalizeBlock
.Proposal
The method
ValidatorSet.Validators
already handles ordering:cometbft/types/validator_set.go
Lines 38 to 53 in 2a0c1e6
This method is used by
buildExtendedCommitInfo
andbuildLastCommitInfo
, used in the three ABCI methods described above.Acceptance criteria:
H/t Marko B. for noticing this underspecified part of the spec!
The text was updated successfully, but these errors were encountered: