Description
Feature Request
Summary
It would be useful if the spec for ABCI 2.0 documented the expected ordering of elements within fields VoteInfo
and ExtendedVoteInfo
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
and ExtendedVoteInfo
. There are three ABCI methods concerned here:
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
and buildLastCommitInfo
, used in the three ABCI methods described above.
Acceptance criteria:
- double-check that the above is accurate
- extend the specification for the three ABCI methods concerned to document the ordering guarantees
H/t Marko B. for noticing this underspecified part of the spec!