reth_evm::state_change

Function insert_post_block_withdrawals_balance_increments

Source
pub fn insert_post_block_withdrawals_balance_increments<ChainSpec: EthereumHardforks>(
    chain_spec: &ChainSpec,
    block_timestamp: u64,
    withdrawals: Option<&[Withdrawal]>,
    balance_increments: &mut HashMap<Address, u128>,
)
Expand description

Applies all withdrawal balance increments if shanghai is active at the given timestamp to the given balance_increments map.

Zero-valued withdrawals are filtered out.