Skip to content

Commit

Permalink
chore: Update Holocene timestamp for Sepolia (#12479)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored Nov 12, 2024
1 parent 9884167 commit b6558f6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions crates/optimism/chainspec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ mod tests {
),
(
Head { number: 0, timestamp: 1723478400, ..Default::default() },
ForkId { hash: ForkHash([0x75, 0xde, 0xa4, 0x1e]), next: 1732201200 },
ForkId { hash: ForkHash([0x75, 0xde, 0xa4, 0x1e]), next: 1732633200 },
),
(
Head { number: 0, timestamp: 1732201200, ..Default::default() },
ForkId { hash: ForkHash([0x98, 0x1c, 0x21, 0x69]), next: 0 },
Head { number: 0, timestamp: 1732633200, ..Default::default() },
ForkId { hash: ForkHash([0x4a, 0x1c, 0x79, 0x2e]), next: 0 },
),
],
);
Expand Down Expand Up @@ -644,11 +644,11 @@ mod tests {
),
(
Head { number: 0, timestamp: 1723478400, ..Default::default() },
ForkId { hash: ForkHash([0x5e, 0xdf, 0xa3, 0xb6]), next: 1732201200 },
ForkId { hash: ForkHash([0x5e, 0xdf, 0xa3, 0xb6]), next: 1732633200 },
),
(
Head { number: 0, timestamp: 1732201200, ..Default::default() },
ForkId { hash: ForkHash([0x59, 0x5e, 0x2e, 0x6e]), next: 0 },
Head { number: 0, timestamp: 1732633200, ..Default::default() },
ForkId { hash: ForkHash([0x8b, 0x5e, 0x76, 0x29]), next: 0 },
),
],
);
Expand Down
6 changes: 3 additions & 3 deletions crates/optimism/hardforks/src/hardfork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl OpHardfork {
Self::Ecotone => Some(1708534800),
Self::Fjord => Some(1716998400),
Self::Granite => Some(1723478400),
Self::Holocene => Some(1732201200),
Self::Holocene => Some(1732633200),
},
)
}
Expand Down Expand Up @@ -257,7 +257,7 @@ impl OpHardfork {
(Self::Ecotone.boxed(), ForkCondition::Timestamp(1708534800)),
(Self::Fjord.boxed(), ForkCondition::Timestamp(1716998400)),
(Self::Granite.boxed(), ForkCondition::Timestamp(1723478400)),
(Self::Holocene.boxed(), ForkCondition::Timestamp(1732201200)),
(Self::Holocene.boxed(), ForkCondition::Timestamp(1732633200)),
])
}

Expand Down Expand Up @@ -289,7 +289,7 @@ impl OpHardfork {
(Self::Ecotone.boxed(), ForkCondition::Timestamp(1708534800)),
(Self::Fjord.boxed(), ForkCondition::Timestamp(1716998400)),
(Self::Granite.boxed(), ForkCondition::Timestamp(1723478400)),
(Self::Holocene.boxed(), ForkCondition::Timestamp(1732201200)),
(Self::Holocene.boxed(), ForkCondition::Timestamp(1732633200)),
])
}

Expand Down
10 changes: 5 additions & 5 deletions crates/optimism/node/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ mod test {
#[test]
fn test_well_formed_attributes_pre_holocene() {
let validator = OpEngineValidator::new(get_chainspec());
let attributes = get_attributes(None, 1732201199);
let attributes = get_attributes(None, 1732633199);

let result = <engine::OpEngineValidator as reth_node_builder::EngineValidator<
OpEngineTypes,
Expand All @@ -227,7 +227,7 @@ mod test {
#[test]
fn test_well_formed_attributes_holocene_no_eip1559_params() {
let validator = OpEngineValidator::new(get_chainspec());
let attributes = get_attributes(None, 1732201200);
let attributes = get_attributes(None, 1732633200);

let result = <engine::OpEngineValidator as reth_node_builder::EngineValidator<
OpEngineTypes,
Expand All @@ -240,7 +240,7 @@ mod test {
#[test]
fn test_well_formed_attributes_holocene_eip1559_params_zero_denominator() {
let validator = OpEngineValidator::new(get_chainspec());
let attributes = get_attributes(Some(b64!("0000000000000008")), 1732201200);
let attributes = get_attributes(Some(b64!("0000000000000008")), 1732633200);

let result = <engine::OpEngineValidator as reth_node_builder::EngineValidator<
OpEngineTypes,
Expand All @@ -253,7 +253,7 @@ mod test {
#[test]
fn test_well_formed_attributes_holocene_valid() {
let validator = OpEngineValidator::new(get_chainspec());
let attributes = get_attributes(Some(b64!("0000000800000008")), 1732201200);
let attributes = get_attributes(Some(b64!("0000000800000008")), 1732633200);

let result = <engine::OpEngineValidator as reth_node_builder::EngineValidator<
OpEngineTypes,
Expand All @@ -266,7 +266,7 @@ mod test {
#[test]
fn test_well_formed_attributes_holocene_valid_all_zero() {
let validator = OpEngineValidator::new(get_chainspec());
let attributes = get_attributes(Some(b64!("0000000000000000")), 1732201200);
let attributes = get_attributes(Some(b64!("0000000000000000")), 1732633200);

let result = <engine::OpEngineValidator as reth_node_builder::EngineValidator<
OpEngineTypes,
Expand Down

0 comments on commit b6558f6

Please sign in to comment.