pub trait OnNewHead {
// Required method
fn on_new_head(id: ParaId, head: &ParaHead) -> Weight;
}
Expand description
Runtime hook for when a parachain head is updated.
Required Methods§
Sourcefn on_new_head(id: ParaId, head: &ParaHead) -> Weight
fn on_new_head(id: ParaId, head: &ParaHead) -> Weight
Called when a parachain head is updated. Returns the weight consumed by this function.
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.