Skip to content

Commit

Permalink
check shanghai timestamp for withdrawals instead of paris (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored Mar 22, 2023
1 parent 4cc3a44 commit b443917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/storage/provider/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b443917

Please sign in to comment.