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§
sourcefn fill_tx_env(
tx_env: &mut TxEnv,
transaction: &TransactionSigned,
sender: Address
)
fn fill_tx_env( tx_env: &mut TxEnv, transaction: &TransactionSigned, sender: Address )
Fill transaction environment from a TransactionSigned and the given sender address.
sourcefn fill_cfg_env(
cfg_env: &mut CfgEnvWithHandlerCfg,
chain_spec: &ChainSpec,
header: &Header,
total_difficulty: Uint<256, 4>
)
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§
sourcefn fill_cfg_and_block_env(
cfg: &mut CfgEnvWithHandlerCfg,
block_env: &mut BlockEnv,
chain_spec: &ChainSpec,
header: &Header,
total_difficulty: Uint<256, 4>
)
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.