pallet_subspace

Trait EraChangeTrigger

source
pub trait EraChangeTrigger {
    // Required method
    fn trigger<T: Config>(block_number: BlockNumberFor<T>);
}
Expand description

Trigger an era change, if any should take place.

Required Methods§

source

fn trigger<T: Config>(block_number: BlockNumberFor<T>)

Trigger an era change, if any should take place. This should be called during every block, after initialization is done.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§