Trait polkadot_runtime_parachains::paras::OnNewHead
source · pub trait OnNewHead {
// Required method
fn on_new_head(id: ParaId, head: &HeadData) -> Weight;
}
Expand description
Runtime hook for when a parachain head is updated.
Required Methods§
sourcefn on_new_head(id: ParaId, head: &HeadData) -> Weight
fn on_new_head(id: ParaId, head: &HeadData) -> Weight
Called when a parachain head is updated. Returns the weight consumed by this function.
Object Safety§
This trait is not object safe.