pub trait BlockAssembler<F: BlockExecutorFactory> {
type Block: Block;
// Required method
fn assemble_block(
&self,
input: BlockAssemblerInput<'_, '_, F, <Self::Block as Block>::Header>,
) -> Result<Self::Block, BlockExecutionError>;
}
Expand description
A type that knows how to assemble a block.
Required Associated Types§
Required Methods§
Sourcefn assemble_block(
&self,
input: BlockAssemblerInput<'_, '_, F, <Self::Block as Block>::Header>,
) -> Result<Self::Block, BlockExecutionError>
fn assemble_block( &self, input: BlockAssemblerInput<'_, '_, F, <Self::Block as Block>::Header>, ) -> Result<Self::Block, BlockExecutionError>
Builds a block. see BlockAssemblerInput
documentation for more details.