fix(op): use canyon,ecotone fork timestamps for op mainnet (#8011)

This commit is contained in:
Dan Cline
2024-04-30 20:20:23 -04:00
committed by GitHub
parent 8e65cb3aa5
commit bf9d9745ed

View File

@ -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![
@ -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() {