Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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