Skip to content

Commit

Permalink
use proper type of manifest server
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Oct 9, 2024
1 parent 2e06de5 commit 61bc273
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/networks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ pub struct ChainConfig {
pub fip0081_ramp_duration_epochs: u64,
pub f3_bootstrap_epoch: i64,
pub f3_initial_power_table: Cid,
pub f3_mainfest_server: Option<Cid>,
#[cfg_attr(test, arbitrary(gen(|_| Some(libp2p::PeerId::random()))))]
pub f3_mainfest_server: Option<libp2p::PeerId>,
}

impl ChainConfig {
Expand Down Expand Up @@ -633,4 +634,12 @@ mod tests {
"dummydevnet"
);
}

#[test]
fn chain_config() {
ChainConfig::mainnet();
ChainConfig::calibnet();
ChainConfig::devnet();
ChainConfig::butterflynet();
}
}

0 comments on commit 61bc273

Please sign in to comment.