Function pallet_staking::dispatchables::force_new_era
source · pub fn force_new_era<T: Config>()
Expand description
Force there to be a new era at the end of the next session. After this, it will be reset to normal (non-forced) behaviour.
The dispatch origin must be Root.
§Warning
The election process starts multiple blocks before the end of the era. If this is called just before a new era is triggered, the election process may not have enough blocks to get a result.
§Complexity
- No arguments.
- Weight: O(1)
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::force_new_era
.