From 8f7deb1885655f1468370a21a7060dbbff7fe05a Mon Sep 17 00:00:00 2001 From: William Freudenberger Date: Thu, 11 Apr 2024 21:14:14 +0200 Subject: [PATCH] fix: chain spec not deterministic (#1807) --- node/src/chain_spec.rs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index b263767e7b..b5e46ea2b5 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -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(), @@ -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(), @@ -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 {