8000 spec: Add additional information about validator ordering (total power) (backport #2715) by mergify[bot] · Pull Request #2720 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

spec: Add additional information about validator ordering (total power) (backport #2715) #2720

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

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions spec/abci/abci++_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,12 @@ Most of the data structures used in ABCI are shared [common data structures](../
| round | int32 | Commit round. Reflects the round at which the block proposer decided in the previous height. | 1 |
| votes | repeated [VoteInfo](#voteinfo) | List of validators' addresses in the last validator set with their voting information. | 2 |

* **Notes**
* The `VoteInfo` in `votes` are ordered by the voting power of the validators (descending order, highest to lowest voting power).
* CometBFT guarantees the `votes` ordering through its logic to update the validator set in which, in the end, the validators are sorted (descending) by their voting power.
* The ordering is also persisted when a validator set is saved in the store.
* The validator set is loaded from the store when building the `CommitInfo`, ensuring order is maintained from the persisted validator set.

### ExtendedCommitInfo

* **Fields**:
Expand All @@ -845,6 +851,12 @@ Most of the data structures used in ABCI are shared [common data structures](../
| round | int32 | Commit round. Reflects the round at which the block proposer decided in the previous height. | 1 |
| votes | repeated [ExtendedVoteInfo](#extendedvoteinfo) | List of validators' addresses in the last validator set with their voting information, including vote extensions. | 2 |

* **Notes**
* The `ExtendedVoteInfo` in `votes` are ordered by the voting power of the validators (descending order, highest to lowest voting power).
* CometBFT guarantees the `votes` ordering through its logic to update the validator set in which, in the end, the validators are sorted (descending) by their voting power.
* The ordering is also persisted when a validator set is saved in the store.
* The validator set is loaded from the store when building the `ExtendedCommitInfo`, ensuring order is maintained from the persisted validator set.

### ExecTxResult

* **Fields**:
Expand Down
0