Skip to content

Commit

Permalink
chore: butterflynet reset (#5361)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 authored Mar 3, 2025
1 parent 4040189 commit 66cc68a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/networks/butterflynet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ pub async fn fetch_genesis<DB: SettingsStore>(db: &DB) -> anyhow::Result<Vec<u8>

/// Genesis CID
pub static GENESIS_CID: Lazy<Cid> = Lazy::new(|| {
Cid::from_str("bafy2bzacecm7xklkq3hkc2kgm5wnb5shlxmffino6lzhh7lte5acytb7sssr4").unwrap()
Cid::from_str("bafy2bzacec4pxatmag56xwfpniagbeygezmz36basxkxiwc7cex7hg6lymr64").unwrap()
});

/// Compressed genesis file. It is compressed with zstd and cuts the download size by 80% (from 10 MB to 2 MB).
static GENESIS_URL: Lazy<Url> = Lazy::new(|| {
"https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/genesis/butterflynet-bafy2bzacecm7xklkq3hkc2kgm5wnb5shlxmffino6lzhh7lte5acytb7sssr4.car.zst"
"https://forest-snapshots.fra1.cdn.digitaloceanspaces.com/genesis/butterflynet-bafy2bzacec4pxatmag56xwfpniagbeygezmz36basxkxiwc7cex7hg6lymr64.car.zst"
.parse()
.expect("hard-coded URL must parse")
});
Expand All @@ -55,7 +55,7 @@ static GENESIS_URL: Lazy<Url> = Lazy::new(|| {
/// The genesis file does not live on the `master` branch, currently on `butterfly/v24` branch.
/// `<https://github.com/filecoin-project/lotus/commit/36e6a639fd8411dd69048c95ac478468f2755b8d>`
static GENESIS_URL_ALT: Lazy<Url> = Lazy::new(|| {
"https://github.com/filecoin-project/lotus/raw/b15b3c40b9649e3bc52aa15968d558aa4514ba6a/build/genesis/butterflynet.car.zst".parse().expect("hard-coded URL must parse")
"https://github.com/filecoin-project/lotus/raw/e2a790ef3ae8284a2ae52b0d7d18e4139ab909fc/build/genesis/butterflynet.car.zst".parse().expect("hard-coded URL must parse")
});

pub(crate) const MINIMUM_CONSENSUS_POWER: i64 = 2 << 30;
Expand Down

0 comments on commit 66cc68a

Please sign in to comment.