fix(light): the validator with the lowest proposer priority is not guaranteed to have been the proposer of the previous block #5279
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The validator with the lowest proposer priority in the validator set is not necessarily the previous proposer.
Example
Take a look at Initia mainnet blocks 1846549 and 1846550:
FA593C7759CD64CF7BD339E8F8E6A30201097348increased from-17172236to-16276454.82DB4159D2BA84EA02B269815FB87BC022AFA9FFchanged from14744743to-16034753.Despite this,
82DB4159D2BA84EA02B269815FB87BC022AFA9FFwas the proposer, even thoughFA593C7759CD64CF7BD339E8F8E6A30201097348had a lower priority value.Note
Correct proposer determination and validator-set handling, add proposer-priority hash and signature caching for faster light verification, enforce vote-extension rules, refine block/tx sizing, and update indexer/e2e/build tooling.
ProposerPriorityis prior proposer; require proposer exists in set; addValidatorSet.ProposerPriorityHashand pass proposer toValidatorSetFromExistingValidators.VerifyCommitLight(AllSignatures)/WithCacheAPIs; improve batch/single verification paths and errors.MaxDataBytes, part/commit size math; addProposal.ValidateBlockSize.Written by Cursor Bugbot for commit e970e54. This will update automatically on new commits. Configure here.