reth_evm::state_change

Function post_block_withdrawals_balance_increments

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

Returns a map of addresses to their balance increments if the Shanghai hardfork is active at the given timestamp.

Zero-valued withdrawals are filtered out.