pub trait EnsureInherentsAreFirst<Block>: IsInherent<<Block as Block>::Extrinsic>where
Block: Block,{
// Required method
fn ensure_inherents_are_first(block: &Block) -> Result<u32, u32>;
}
Expand description
A trait to ensure the inherent are before non-inherent in a block.
This is typically implemented on runtime, through construct_runtime!
.
Required Methods§
fn ensure_inherents_are_first(block: &Block) -> Result<u32, u32>
fn ensure_inherents_are_first(block: &Block) -> Result<u32, u32>
Ensure the position of inherent is correct, i.e. they are before non-inherents.
On error return the index of the inherent with invalid position (counting from 0). On
success it returns the index of the last inherent. 0
therefore means that there are no
inherents.
Object Safety§
This trait is not object safe.