pub fn prune_era_step<T: Config>(era: EraIndex)
Expand description
Perform one step of era pruning to prevent PoV size exhaustion from unbounded deletions.
This extrinsic enables permissionless lazy pruning of era data by performing incremental deletion of storage items. Each call processes a limited number of items based on available block weight to avoid exceeding block limits.
Returns Pays::No
when work is performed to incentivize regular maintenance.
Anyone can call this to help maintain the chain’s storage health.
The era must be eligible for pruning (older than HistoryDepth + 1).
Check EraPruningState
storage to see if an era needs pruning before calling.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::prune_era_step
.