Trait reth_node_builder::ConfigureEvmEnv

source ·
pub trait ConfigureEvmEnv: Send + Sync + Unpin + Clone + 'static {
    // Required methods
    fn fill_tx_env(
        tx_env: &mut TxEnv,
        transaction: &TransactionSigned,
        sender: Address
    );
    fn fill_cfg_env(
        cfg_env: &mut CfgEnvWithHandlerCfg,
        chain_spec: &ChainSpec,
        header: &Header,
        total_difficulty: Uint<256, 4>
    );

    // Provided method
    fn fill_cfg_and_block_env(
        cfg: &mut CfgEnvWithHandlerCfg,
        block_env: &mut BlockEnv,
        chain_spec: &ChainSpec,
        header: &Header,
        total_difficulty: Uint<256, 4>
    ) { ... }
}
Expand description

This represents the set of methods used to configure the EVM’s environment before block execution.

Required Methods§

source

fn fill_tx_env( tx_env: &mut TxEnv, transaction: &TransactionSigned, sender: Address )

Fill transaction environment from a TransactionSigned and the given sender address.

source

fn fill_cfg_env( cfg_env: &mut CfgEnvWithHandlerCfg, chain_spec: &ChainSpec, header: &Header, total_difficulty: Uint<256, 4> )

Fill [CfgEnvWithHandlerCfg] fields according to the chain spec and given header

Provided Methods§

source

fn fill_cfg_and_block_env( cfg: &mut CfgEnvWithHandlerCfg, block_env: &mut BlockEnv, chain_spec: &ChainSpec, header: &Header, total_difficulty: Uint<256, 4> )

Convenience function to call both fill_cfg_env and fill_block_env.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConfigureEvmEnv for OptimismEvmConfig

source§

fn fill_tx_env( tx_env: &mut TxEnv, transaction: &TransactionSigned, sender: Address )

source§

fn fill_cfg_env( cfg_env: &mut CfgEnvWithHandlerCfg, chain_spec: &ChainSpec, header: &Header, total_difficulty: Uint<256, 4> )

Implementors§