Skip to content

Commit 214c31c

Browse files
fix(op): update Base Mainnet DynamicBaseFeeParams (#1284)
1 parent b505164 commit 214c31c

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

crates/edr_op/src/hardfork/base.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ pub(crate) static MAINNET_BASE_FEE_PARAMS: LazyLock<BaseFeeParams<OpSpecId>> =
4141
BaseFeeActivation::BlockNumber(39_647_879),
4242
ConstantBaseFeeParams::new(50, 6),
4343
),
44+
(
45+
BaseFeeActivation::BlockNumber(41_711_238),
46+
ConstantBaseFeeParams::new(125, 6),
47+
),
4448
]))
4549
});
4650

crates/edr_op/tests/integration/dynamic_base_fee_params.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ async fn assert_base_fee_activation(
4242
assert_eq!(remote_header.base_fee_per_gas, local_header.base_fee);
4343
Ok(())
4444
};
45+
// Two blocks before the activation point shouldn't see any modification
46+
assert_replay_header::<OpChainSpec>(
47+
runtime.clone(),
48+
url.clone(),
49+
block_number - 2,
50+
header_overrides,
51+
block_validation,
52+
)
53+
.await?;
54+
55+
// One block before the activation point should have a different `extra_data`
56+
// field than its parent
4557
assert_replay_header::<OpChainSpec>(
4658
runtime.clone(),
4759
url.clone(),
@@ -51,6 +63,8 @@ async fn assert_base_fee_activation(
5163
)
5264
.await?;
5365

66+
// The activation point block should use the new values for calculating the base
67+
// fee
5468
assert_replay_header::<OpChainSpec>(
5569
runtime,
5670
url,
@@ -75,6 +89,7 @@ impl_test_dynamic_base_fee_params! {
7589
38_088_319,
7690
38_951_425, // jovian activated block
7791
39_647_879, // SystemConfig EIP-1559 update 2025-12-18
92+
41_711_238, // SystemConfig EIP-1559 update 2026-02-04
7893
],
7994
op_sepolia: json_rpc_url_provider::op_sepolia() => [
8095
26_806_602,

0 commit comments

Comments
 (0)