Skip to content

Commit

Permalink
feat: Superchain mainnet - Granite hardfork timestamps (#10387)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Aug 20, 2024
1 parent 7f6aa43 commit 56e1448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions crates/chainspec/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,11 @@ Post-merge hard forks (timestamp based):
),
(
Head { number: 0, timestamp: 1720627201, ..Default::default() },
ForkId { hash: ForkHash([0xe4, 0x01, 0x0e, 0xb9]), next: 0 },
ForkId { hash: ForkHash([0xe4, 0x01, 0x0e, 0xb9]), next: 1725984001 },
),
(
Head { number: 0, timestamp: 1725984001, ..Default::default() },
ForkId { hash: ForkHash([0xfa, 0x57, 0x86, 0x01]), next: 0 },
),
],
);
Expand Down Expand Up @@ -2649,7 +2653,7 @@ Post-merge hard forks (timestamp based):
#[test]
fn latest_base_mainnet_fork_id() {
assert_eq!(
ForkId { hash: ForkHash([0xe4, 0x01, 0x0e, 0xb9]), next: 0 },
ForkId { hash: ForkHash([0xfa, 0x57, 0x86, 0x01]), next: 0 },
BASE_MAINNET.latest_fork_id()
)
}
Expand Down
4 changes: 3 additions & 1 deletion crates/ethereum-forks/src/hardfork/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ impl OptimismHardfork {
Self::Canyon => Some(1704992401),
Self::Ecotone => Some(1710374401),
Self::Fjord => Some(1720627201),
_ => None,
Self::Granite => Some(1725984001),
},
)
}
Expand Down Expand Up @@ -219,6 +219,7 @@ impl OptimismHardfork {
(EthereumHardfork::Cancun.boxed(), ForkCondition::Timestamp(1710374401)),
(Self::Ecotone.boxed(), ForkCondition::Timestamp(1710374401)),
(Self::Fjord.boxed(), ForkCondition::Timestamp(1720627201)),
(Self::Granite.boxed(), ForkCondition::Timestamp(1725984001)),
])
}

Expand Down Expand Up @@ -311,6 +312,7 @@ impl OptimismHardfork {
(EthereumHardfork::Cancun.boxed(), ForkCondition::Timestamp(1710374401)),
(Self::Ecotone.boxed(), ForkCondition::Timestamp(1710374401)),
(Self::Fjord.boxed(), ForkCondition::Timestamp(1720627201)),
(Self::Granite.boxed(), ForkCondition::Timestamp(1725984001)),
])
}
}
Expand Down

0 comments on commit 56e1448

Please sign in to comment.