pub fn commit_withdrawals<DB, ChainSpec>(
db: &mut State<DB>,
chain_spec: &ChainSpec,
timestamp: u64,
withdrawals: &Withdrawals,
) -> Result<Option<B256>, DB::Error>where
DB: Database,
ChainSpec: EthereumHardforks,
Expand description
Executes the withdrawals and commits them to the runtime Database and BundleState
.
Returns the withdrawals root.
Returns None
values pre shanghai