Skip to content

Commit

Permalink
fix(op): use canyon,ecotone fork timestamps for op mainnet (paradigmx…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected authored and mw2000 committed Jun 5, 2024
1 parent d6dd01f commit cf53b49
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions crates/primitives/src/chain/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ pub static OP_MAINNET: Lazy<Arc<ChainSpec>> = Lazy::new(|| {
),
(Hardfork::Bedrock, ForkCondition::Block(105235063)),
(Hardfork::Regolith, ForkCondition::Timestamp(0)),
(Hardfork::Canyon, ForkCondition::Timestamp(1704992401)),
(Hardfork::Ecotone, ForkCondition::Timestamp(1710374401)),
]),
base_fee_params: BaseFeeParamsKind::Variable(
vec![
Expand Down Expand Up @@ -2469,6 +2471,25 @@ Post-merge hard forks (timestamp based):
);
}

#[cfg(feature = "optimism")]
#[test]
fn op_mainnet_forkids() {
test_fork_ids(
&OP_MAINNET,
&[
(
Head { number: 0, ..Default::default() },
ForkId { hash: ForkHash([0xca, 0xf5, 0x17, 0xed]), next: 3950000 },
),
// TODO: complete these, see https://github.com/paradigmxyz/reth/issues/8012
(
Head { number: 105235063, timestamp: 1710374401, ..Default::default() },
ForkId { hash: ForkHash([0x19, 0xda, 0x4c, 0x52]), next: 0 },
),
],
);
}

#[cfg(feature = "optimism")]
#[test]
fn base_sepolia_forkids() {
Expand Down

0 comments on commit cf53b49

Please sign in to comment.