Skip to content

Comments

fix: getVotes return empty instead of stale data#20756

Merged
LHerskind merged 1 commit intonextfrom
lh/fix-get-votes-stale-read
Feb 23, 2026
Merged

fix: getVotes return empty instead of stale data#20756
LHerskind merged 1 commit intonextfrom
lh/fix-get-votes-stale-read

Conversation

@LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Feb 23, 2026

Fix getVotes in TallySlashingProposer.sol to return empty bytes when _index >= voteCount (preventing stale per-index reads from reused circular storage), add a regression test in TallySlashingProposer.t.sol, and clarify the related staleness comments.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@LHerskind LHerskind marked this pull request as ready for review February 23, 2026 10:11
@LHerskind LHerskind added this pull request to the merge queue Feb 23, 2026
Merged via the queue into next with commit a5ba3dc Feb 23, 2026
35 of 36 checks passed
@LHerskind LHerskind deleted the lh/fix-get-votes-stale-read branch February 23, 2026 12:46
AztecBot pushed a commit that referenced this pull request Feb 23, 2026
Fix `getVotes` in `TallySlashingProposer.sol` to return empty bytes when `_index >= voteCount` (preventing stale per-index reads from reused circular storage), add a regression test in `TallySlashingProposer.t.sol`, and clarify the related staleness comments.
@AztecBot
Copy link
Collaborator

✅ Successfully backported to backport-to-v4-staging #20752.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants