Trait pallet_babe::EpochChangeTrigger
source · pub trait EpochChangeTrigger {
// Required method
fn trigger<T: Config>(now: T::BlockNumber);
}
Expand description
Trigger an epoch change, if any should take place.
Required Methods§
sourcefn trigger<T: Config>(now: T::BlockNumber)
fn trigger<T: Config>(now: T::BlockNumber)
Trigger an epoch change, if any should take place. This should be called during every block, after initialization is done.