Skip to content

Commit 57cb5d4

Browse files
Merge branch 'main' into shashank/add-f4-support
2 parents 6b652f2 + 80f3c02 commit 57cb5d4

7 files changed

Lines changed: 24 additions & 2 deletions

File tree

src/networks/butterflynet/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ pub static HEIGHT_INFOS: LazyLock<HashMap<Height, HeightInfo>> = LazyLock::new(|
106106
make_height!(Teep, 50, get_bundle_cid("v16.0.1")),
107107
make_height!(Tock, 100),
108108
make_height!(GoldenWeek, 200, get_bundle_cid("v17.0.0")),
109+
make_height!(Xxx, i64::MAX),
109110
])
110111
});
111112

src/networks/calibnet/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pub static HEIGHT_INFOS: LazyLock<HashMap<Height, HeightInfo>> = LazyLock::new(|
9595
make_height!(TockFix, 2_558_014, get_bundle_cid("v16.0.1")),
9696
// Wed 10 Sep 23:00:00 UTC 2025
9797
make_height!(GoldenWeek, 3_007_294, get_bundle_cid("v17.0.0")),
98+
make_height!(Xxx, i64::MAX),
9899
])
99100
});
100101

src/networks/devnet/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ pub static HEIGHT_INFOS: LazyLock<HashMap<Height, HeightInfo>> = LazyLock::new(|
164164
get_upgrade_height_from_env("FOREST_GOLDEN_WEEK_HEIGHT").unwrap_or(9999999999),
165165
get_bundle_cid("v17.0.0")
166166
),
167+
make_height!(
168+
Xxx,
169+
get_upgrade_height_from_env("FOREST_XXX_HEIGHT").unwrap_or(9999999999)
170+
),
167171
])
168172
});
169173

src/networks/mainnet/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ pub static HEIGHT_INFOS: LazyLock<HashMap<Height, HeightInfo>> = LazyLock::new(|
9292
make_height!(Tock, 4_878_840 + EPOCHS_IN_DAY * 90),
9393
// Wed 24 Sep 23:00:00 UTC 2025
9494
make_height!(GoldenWeek, 5_348_280, get_bundle_cid("v17.0.0")),
95+
make_height!(Xxx, i64::MAX),
9596
])
9697
});
9798

src/networks/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub mod mainnet;
4848
pub mod metrics;
4949

5050
/// Newest network version for all networks
51-
pub const NEWEST_NETWORK_VERSION: NetworkVersion = NetworkVersion::V25;
51+
pub const NEWEST_NETWORK_VERSION: NetworkVersion = NetworkVersion::V27;
5252

5353
const ENV_FOREST_BLOCK_DELAY_SECS: &str = "FOREST_BLOCK_DELAY_SECS";
5454
const ENV_FOREST_PROPAGATION_DELAY_SECS: &str = "FOREST_PROPAGATION_DELAY_SECS";
@@ -176,6 +176,7 @@ pub enum Height {
176176
Tock,
177177
TockFix,
178178
GoldenWeek,
179+
Xxx,
179180
}
180181

181182
impl From<Height> for NetworkVersion {
@@ -216,6 +217,7 @@ impl From<Height> for NetworkVersion {
216217
Height::Tock => NetworkVersion::V26,
217218
Height::TockFix => NetworkVersion::V26,
218219
Height::GoldenWeek => NetworkVersion::V27,
220+
Height::Xxx => NetworkVersion::V28,
219221
}
220222
}
221223
}
@@ -639,7 +641,7 @@ mod tests {
639641
fn heights_are_present(height_infos: &HashMap<Height, HeightInfo>) {
640642
/// These are required heights that need to be defined for all networks, for, e.g., conformance
641643
/// with `Filecoin.StateGetNetworkParams` RPC method.
642-
const REQUIRED_HEIGHTS: [Height; 30] = [
644+
const REQUIRED_HEIGHTS: [Height; 31] = [
643645
Height::Breeze,
644646
Height::Smoke,
645647
Height::Ignition,
@@ -670,6 +672,7 @@ mod tests {
670672
Height::TukTuk,
671673
Height::Teep,
672674
Height::GoldenWeek,
675+
Height::Xxx,
673676
];
674677

675678
for height in &REQUIRED_HEIGHTS {

src/rpc/methods/state.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3143,6 +3143,7 @@ pub struct ForkUpgradeParams {
31433143
upgrade_teep_height: ChainEpoch,
31443144
upgrade_tock_height: ChainEpoch,
31453145
//upgrade_golden_week_height: ChainEpoch,
3146+
//upgrade_xxx_height: ChainEpoch,
31463147
}
31473148

31483149
impl TryFrom<&ChainConfig> for ForkUpgradeParams {
@@ -3191,6 +3192,7 @@ impl TryFrom<&ChainConfig> for ForkUpgradeParams {
31913192
upgrade_teep_height: get_height(Teep)?,
31923193
upgrade_tock_height: get_height(Tock)?,
31933194
//upgrade_golden_week_height: get_height(GoldenWeek)?,
3195+
//upgrade_xxx_height: get_height(Xxx)?,
31943196
})
31953197
}
31963198
}

src/utils/misc/logo.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub fn reveal_upgrade_logo(network_version: NetworkVersion) {
3232
NetworkVersion::V24 => reveal_tuktuk_upgrade(),
3333
NetworkVersion::V25 => reveal_teep_upgrade(),
3434
NetworkVersion::V27 => reveal_golden_week_upgrade(),
35+
NetworkVersion::V28 => reveal_xxx_upgrade(),
3536
_ => reveal_three_trees(),
3637
}
3738
}
@@ -239,3 +240,12 @@ fn reveal_golden_week_upgrade() {
239240
"###
240241
);
241242
}
243+
244+
/// Reveals the `Xxx` upgrade logo.
245+
fn reveal_xxx_upgrade() {
246+
info!(
247+
r###"
248+
Xxx!
249+
"###
250+
);
251+
}

0 commit comments

Comments
 (0)