Skip to content

Commit

Permalink
fix: chain spec not deterministic (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli authored Apr 11, 2024
1 parent d3a0f0c commit 8f7deb1
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,7 @@ fn centrifuge_genesis(
.collect(),
collator_reward: 8_325 * MILLI_CFG,
treasury_inflation_rate: Rate::saturating_from_rational(3, 100),
last_update: std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.expect("SystemTime before UNIX EPOCH!")
.as_secs(),
last_update: Default::default(),
},
block_rewards_base: Default::default(),
base_fee: Default::default(),
Expand Down Expand Up @@ -768,10 +765,7 @@ fn altair_genesis(
.collect(),
collator_reward: 98_630 * MILLI_AIR,
treasury_inflation_rate: Rate::saturating_from_rational(3, 100),
last_update: std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.expect("SystemTime before UNIX EPOCH!")
.as_secs(),
last_update: Default::default(),
},
block_rewards_base: Default::default(),
collator_allowlist: Default::default(),
Expand Down Expand Up @@ -958,10 +952,7 @@ fn development_genesis(
.collect(),
collator_reward: 8_325 * MILLI_CFG,
treasury_inflation_rate: Rate::saturating_from_rational(3, 100),
last_update: std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.expect("SystemTime before UNIX EPOCH!")
.as_secs(),
last_update: Default::default(),
},
base_fee: Default::default(),
evm_chain_id: development_runtime::EVMChainIdConfig {
Expand Down

0 comments on commit 8f7deb1

Please sign in to comment.