Trait sp_mmr_primitives::OnNewRoot
source · pub trait OnNewRoot<Hash> {
// Required method
fn on_new_root(root: &Hash);
}
Expand description
New MMR root notification hook.
Required Methods§
sourcefn on_new_root(root: &Hash)
fn on_new_root(root: &Hash)
Function called by the pallet in case new MMR root has been computed.
Implementations on Foreign Types§
source§impl<Hash> OnNewRoot<Hash> for ()
impl<Hash> OnNewRoot<Hash> for ()
No-op implementation of OnNewRoot.