Skip to content

fix: Do not aggregate validator offenses across epochs in a vote#16695

Merged
spalladino merged 1 commit intonextfrom
palla/fix-tmnt-233
Sep 2, 2025
Merged

fix: Do not aggregate validator offenses across epochs in a vote#16695
spalladino merged 1 commit intonextfrom
palla/fix-tmnt-233

Conversation

@spalladino
Copy link
Copy Markdown
Contributor

When a validator shows up in multiple committees within a round, we used to aggregate all offenses and vote for them only once. This had side effects such as that, if the slash amount for each epoch was the max slashable amount, they would get slashed only once.

This commit changes it so each appearance of a validator in a slashing round is voted for independently, based on the offenses of that validator for that specific round.

Fixes https://linear.app/aztec-labs/issue/TMNT-233/more-clearly-define-expected-behaviour

@spalladino spalladino force-pushed the palla/fix-tmnt-233 branch 2 times, most recently from 7680350 to 86b0694 Compare September 1, 2025 18:12
@spalladino spalladino enabled auto-merge September 1, 2025 18:13
Comment thread yarn-project/stdlib/src/slashing/helpers.ts
@spalladino spalladino added this pull request to the merge queue Sep 2, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 2, 2025
When a validator shows up in multiple committees within a round, we used
to aggregate all offenses and vote for them only once. This had side
effects such as that, if the slash amount for each epoch was the max
slashable amount, they would get slashed only once.

This commit changes it so each appearance of a validator in a slashing
round is voted for independently, based on the offenses of that
validator for that specific round.

Fixes https://linear.app/aztec-labs/issue/TMNT-233/more-clearly-define-expected-behaviour
@spalladino spalladino enabled auto-merge September 2, 2025 12:42
@spalladino spalladino added this pull request to the merge queue Sep 2, 2025
Merged via the queue into next with commit 4660801 Sep 2, 2025
14 checks passed
@spalladino spalladino deleted the palla/fix-tmnt-233 branch September 2, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants