Skip to content

[NPoS] Pagify slashing #3610

@Ank4n

Description

@Ank4n

Currently

  • Slashes are scheduled with delay of slash_defer_duration.
  • Unapplied slashes has unbounded number of stash accounts and reporters.
  • All slashes for an era are applied in one block at start of the era.

Goal

  • Unapplied slashes are pagified. For a given validator and era, there could be multiple pages unapplied slashes.
  • Only one validator and one page of unapplied slash is applied per block.
  • Edge case: if at end of era there are still unapplied slashes, apply all of them.

Notes

Current: An offence report can come between the offence_era and SlashDeferDuration. The slash is applied on offence_era + SlashDeferDuration. SlashDeferDuration should be strictly less than BondingDuration. This is only 1 day in prod runtimes.

Metadata

Metadata

Assignees

Labels

T1-FRAMEThis PR/Issue is related to core FRAME, the framework.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions