Function force_genesis_config

Source
pub fn force_genesis_config<T: Config<I>, I: 'static>(
    field: ForceGenesisConfig<T, I>,
)
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.

The parameter to update is specified via the ForceGenesisConfig enum:

  • MinPulse - Updates the minimum pulse required for reputation effects.
  • InitXp - Updates the initial XP assigned to newly created XP entries.
  • PulseFactor - Updates the pulse stepping configuration (threshold and per_count).
  • MinTimeStamp - Updated the minimum blocks required for an XP entry to be considered alive.

For PulseFactor, the call fails with Error::LowPulseThreshold if per_count > threshold, as this would invalidate the stepping logic.

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.