referrerpolicy=no-referrer-when-downgrade

Function execute

Source
pub fn execute(
    parent_hash: [u8; 32],
    parent_head: HeadData,
    block_data: BlockData,
) -> Result<(HeadData, GraveyardState, UpwardMessages), StateMismatch>
Expand description

Execute a block body on top of given parent head, producing new parent head and new state if valid.