Skip to main content

Module system

Module system 

Source
Expand description

SlashingSystem genesis bootstrap.

Traces to: SPEC §11.

§Role

Bundles the three long-lived state trackers (SlashingManager, ParticipationTracker, InactivityScoreTracker) into one aggregate that the embedder can construct via SlashingSystem::genesis at chain birth and step forward via crate::run_epoch_boundary at every epoch boundary.

The three sub-components are independently useful (tests in earlier phases construct them directly), so this aggregate is intentionally a thin wrapper — it owns zero logic beyond the constructor.

Structs§

GenesisParameters
Parameters required at chain genesis to initialise the slashing system.
SlashingSystem
Aggregate of the three long-lived slashing-state trackers an embedder carries across blocks.