Trait frame_support::traits::ExecuteBlock
source · pub trait ExecuteBlock<Block: BlockT> {
// Required method
fn execute_block(block: Block);
}
Expand description
Something that can execute a given block.
Executing a block means that all extrinsics in a given block will be executed and the resulting header will be checked against the header of the given block.
Required Methods§
sourcefn execute_block(block: Block)
fn execute_block(block: Block)
Execute the given block
.
This will execute all extrinsics in the block and check that the resulting header is correct.
§Panic
Panics when an extrinsics panics or the resulting header doesn’t match the expected header.
Object Safety§
This trait is not object safe.