feat: Slash lists, store expiration, veto checks#16667
Merged
spalladino merged 1 commit intonextfrom Aug 29, 2025
Merged
Conversation
Adds some missing features to slashing: - Adds support for the slashValidatorNever and slashValidatorAlways config settings (now EthAddress lists) so that validators in those lists are never/always slashed. All validators in the local keystore are automatically added to the "never" list. - Checks if a slash payload is vetoed before trying to execute it, to avoid running an unnecessary simulation. This is handled on the slasher client directly. - Adds expiration for offenses and payloads to avoid cluttering the local stores. Removes unused slashPayloadTtl setting. - Avoids posting committee addresses during executeRound for committees that are not slashed, in order to save calldata gas.
just-mitch
approved these changes
Aug 29, 2025
ludamad
pushed a commit
that referenced
this pull request
Dec 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds some missing features to slashing:
Adds support for the slashValidatorNever and slashValidatorAlways config settings (now EthAddress lists) so that validators in those lists are never/always slashed. All validators in the local keystore are automatically added to the "never" list, unless a
slashSelfAllowedis set.Checks if a slash payload is vetoed before trying to execute it, to avoid running an unnecessary simulation. This is handled on the slasher client directly.
Adds expiration for offenses and payloads to avoid cluttering the local stores. Removes unused
slashPayloadTtl setting.Avoids posting committee addresses during executeRound for committees that are not slashed, in order to save calldata gas.
Moves slasher factory methods around to avoid circular dependency.
Previously posted as #16643 but was accidentally merged against the wrong branch