Function ensure_empty_shanghai_withdrawals
pub fn ensure_empty_shanghai_withdrawals<T>(
body: &T,
) -> Result<(), OpConsensusError>where
T: BlockBody,
Available on crate feature
consensus
only.Expand description
Verifies that withdrawals in block body (Shanghai) is always empty in Canyon. https://specs.optimism.io/protocol/rollup-node-p2p.html#block-validation