check shanghai timestamp for withdrawals instead of paris (#1920)

This commit is contained in:
Dan Cline
2023-03-22 16:49:19 -04:00
committed by GitHub
parent 4cc3a444e1
commit b44391776e

View File

@@ -805,7 +805,7 @@ where
// withdrawal can be missing
let shanghai_is_active =
chain_spec.fork(Hardfork::Paris).active_at_block(main_block_number);
chain_spec.fork(Hardfork::Shanghai).active_at_timestamp(header.timestamp);
let mut withdrawals = Some(Vec::new());
if shanghai_is_active {
if let Some((block_number, _)) = block_withdrawals.as_ref() {