reth_evm::execute

Function balance_increment_state

Source
pub fn balance_increment_state<DB>(
    balance_increments: &HashMap<Address, u128, DefaultHashBuilder>,
    state: &mut State<DB>,
) -> Result<EvmState, BlockExecutionError>
where DB: Database,
Expand description

Creates an EvmState from a map of balance increments and the current state to load accounts from. No balance increment is done in the function. Zero balance increments are ignored and won’t create state entries.