mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
20 lines
586 B
Rust
20 lines
586 B
Rust
use crate::{
|
|
node::evm::config::{HlBlockExecutorFactory, HlEvmConfig}, HlBlock, HlHeader
|
|
};
|
|
use reth_evm::{
|
|
block::BlockExecutionError,
|
|
execute::{BlockAssembler, BlockAssemblerInput},
|
|
};
|
|
|
|
impl BlockAssembler<HlBlockExecutorFactory> for HlEvmConfig {
|
|
type Block = HlBlock;
|
|
|
|
fn assemble_block(
|
|
&self,
|
|
input: BlockAssemblerInput<'_, '_, HlBlockExecutorFactory, HlHeader>,
|
|
) -> Result<Self::Block, BlockExecutionError> {
|
|
let HlBlock { header, body } = self.block_assembler.assemble_block(input)?;
|
|
Ok(HlBlock { header, body })
|
|
}
|
|
}
|