pub fn force_genesis_config<T: Config>(field: ForceGenesisConfig<T>)Expand description
Force-update a selected genesis configuration parameter.
Origin: Root only.
This extrinsic allows privileged modification of runtime parameters that were originally defined at genesis.
ProbationPeriod- Updates the number of blocks authors must remain in probation.ReduceProbationBy- Updates how much probation is reduced on good behavior.IncreaseProbationBy- Updates how much probation is increased on misbehavior.RewardsBuffer- Updates the delay (in blocks) before rewards are finalized.PenaltiesBuffer- Updates the delay (in blocks) before penalties are enforced.MaxElected- Updates the maximum number of authors that can be elected.MinElected- Updates the minimum number of authors required for a valid election.EnforceMaxElected- Toggles strict enforcement of theMaxElectedlimit.MinFund- Updates the minimum funding required per backing operation.MaxExposure- Updates the maximum allowed exposure per funding operation.MinCollateral- Updates the minimum collateral required for authors.
The call enforces consistency constraints where applicable:
- Values that must be non-zero will fail with
Error::NonZeroConfigRequired. - Fails with
Error::MinGreaterThanMaxif:MinElected > MaxElected, orMinFund > MaxExposure, orMaxElected < MinElected, orMaxExposure < MinFund.
This call directly overwrites storage and emits an event containing the updated configuration variant.
ยงWarning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::force_genesis_config.