pub trait TracingExecuteBlock<Block: BlockT>: Send + Sync {
// Required method
fn execute_block(&self, orig_hash: Block::Hash, block: Block) -> Result<()>;
}Expand description
Something that can execute a block in a tracing context.
Required Methods§
Sourcefn execute_block(&self, orig_hash: Block::Hash, block: Block) -> Result<()>
fn execute_block(&self, orig_hash: Block::Hash, block: Block) -> Result<()>
Execute the given block.
The block is prepared to be executed right away, this means that any Seal was already
removed from the header. As this changes the hash of the block, orig_hash is passed
alongside to the callee.
The execution should be done sync on the same thread, because the caller will register special tracing collectors.