From 06c20857c8d0e3e6a2225581630ad3804d59a9cb Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 23 Oct 2018 12:33:43 +0200 Subject: [PATCH] Add slot duration to chain config --- beacon_chain/types/src/chain_config.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/beacon_chain/types/src/chain_config.rs b/beacon_chain/types/src/chain_config.rs index 27382ee82..bfb89f792 100644 --- a/beacon_chain/types/src/chain_config.rs +++ b/beacon_chain/types/src/chain_config.rs @@ -6,6 +6,7 @@ pub struct ChainConfig { pub shard_count: u16, pub min_committee_size: u64, pub genesis_time: u64, + pub slot_duration_millis: u64, pub initial_validators: Vec, } @@ -20,7 +21,8 @@ impl ChainConfig { cycle_length: 64, shard_count: 1024, min_committee_size: 128, - genesis_time: GENESIS_TIME, // arbitrary + genesis_time: GENESIS_TIME, + slot_duration_millis: 16 * 1000, initial_validators: vec![], } } @@ -46,6 +48,7 @@ impl ChainConfig { shard_count: 2, min_committee_size: 2, genesis_time: GENESIS_TIME, // arbitrary + slot_duration_millis: 16 * 1000, initial_validators: vec![], } }