Skip to content

Conversation

@LHerskind
Copy link
Contributor

@LHerskind LHerskind commented Jan 5, 2026

If the slashing is unaware of the escape hatch, it is possible to slash the committee that should have been active during the hatch, even though it was not possible for them to be active. This can be mitigate in a few manners;

  1. Make votes on these actors zero during the vote
  2. Disregard votes on these actors when handling the accounting later

At first I had created using approach 1, since that is really simple to understand and there is no "weirdness" in the storage not being used. But I'm leaning more to approach 2 because that is cheaper, so will be doing that.

@LHerskind LHerskind mentioned this pull request Jan 5, 2026
Copy link
Contributor Author

LHerskind commented Jan 5, 2026

@LHerskind LHerskind force-pushed the lh/tmnt-469-tally-slashing-integration branch from 3bed8b4 to 7f2e17d Compare January 5, 2026 23:17
@AztecBot AztecBot force-pushed the lh/escape-hatch-v1 branch 2 times, most recently from f4571c6 to 4e366a9 Compare January 6, 2026 09:28
Base automatically changed from lh/escape-hatch-v1 to next January 6, 2026 10:08
@LHerskind LHerskind force-pushed the lh/tmnt-469-tally-slashing-integration branch from 7f2e17d to 900ed15 Compare January 6, 2026 11:32
@LHerskind LHerskind marked this pull request as ready for review January 6, 2026 11:34
@LHerskind LHerskind requested a review from spalladino January 6, 2026 15:27
Copy link
Contributor

@spalladino spalladino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks simple enough, great!

Epoch protectedEpoch = slashingProposer.getSlashTargetEpoch(currentRound, 1);
uint256 protectedHatch = Epoch.unwrap(protectedEpoch) / ESCAPE_FREQUENCY;
address proposer = open ? address(0xBEEF) : address(0);
stdstore.target(address(escapeHatch)).sig("getDesignatedProposer(uint256)").with_key(protectedHatch)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL!

@LHerskind LHerskind added this pull request to the merge queue Jan 6, 2026
Merged via the queue into next with commit 0092f9f Jan 6, 2026
20 checks passed
@LHerskind LHerskind deleted the lh/tmnt-469-tally-slashing-integration branch January 6, 2026 20:51
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.

3 participants