Skip to content

Commit

Permalink
fix implicit type
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs committed May 15, 2024
1 parent 60a9ccf commit 8e634eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/networks/calibnet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ pub(super) static DRAND_SCHEDULE: Lazy<[DrandPoint<'static>; 2]> = Lazy::new(||
]
});

/// Creates a new mainnet policy with the given version.
/// Creates a new calibnet policy with the given version.
#[macro_export]
macro_rules! make_calibnet_policy {
($version:tt) => {
fil_actors_shared::$version::runtime::Policy {
minimum_consensus_power: (32 << 30).into(),
minimum_consensus_power: (32i64 << 30).into(),
..Default::default()
}
};
Expand Down
9 changes: 3 additions & 6 deletions src/networks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::db::SettingsStore;
use crate::shim::clock::{ChainEpoch, EPOCH_DURATION_SECONDS};
use crate::shim::sector::{RegisteredPoStProofV3, RegisteredSealProofV3};
use crate::shim::version::NetworkVersion;
use crate::{make_butterfly_policy, make_devnet_policy};
use crate::{make_butterfly_policy, make_calibnet_policy, make_devnet_policy, make_mainnet_policy};

mod actors_bundle;
pub use actors_bundle::{generate_actor_bundle, ActorBundleInfo, ACTOR_BUNDLES};
Expand Down Expand Up @@ -226,7 +226,7 @@ impl ChainConfig {
propagation_delay_secs: 10,
genesis_network: GENESIS_NETWORK_VERSION,
height_infos: HEIGHT_INFOS.clone(),
policy: Policy::default(),
policy: make_mainnet_policy!(v13),
eth_chain_id: ETH_CHAIN_ID as u32,
breeze_gas_tamping_duration: BREEZE_GAS_TAMPING_DURATION,
}
Expand All @@ -242,10 +242,7 @@ impl ChainConfig {
propagation_delay_secs: 10,
genesis_network: GENESIS_NETWORK_VERSION,
height_infos: HEIGHT_INFOS.clone(),
policy: Policy {
minimum_consensus_power: (32 << 30).into(),
..Default::default()
},
policy: make_calibnet_policy!(v13),
eth_chain_id: ETH_CHAIN_ID as u32,
breeze_gas_tamping_duration: BREEZE_GAS_TAMPING_DURATION,
}
Expand Down

0 comments on commit 8e634eb

Please sign in to comment.