reth_rpc_eth_types::simulate

Function build_block

Source
pub fn build_block<T: TransactionCompat<Error: FromEthApiError>>(
    results: Vec<(Address, ExecutionResult)>,
    transactions: Vec<TransactionSigned>,
    block_env: &BlockEnv,
    parent_hash: B256,
    total_difficulty: U256,
    full_transactions: bool,
    db: &CacheDB<StateProviderDatabase<StateProviderTraitObjWrapper<'_>>>,
    tx_resp_builder: &T,
) -> Result<SimulatedBlock<Block<T::Transaction>>, T::Error>
Expand description

Handles outputs of the calls execution and builds a [SimulatedBlock].