From 3ef88be04bbc8a02db58bb5b6cae89893fdb2762 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 13 Jul 2018 15:34:05 +1000 Subject: [PATCH] Add params to config --- src/state/config.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/state/config.rs b/src/state/config.rs index 5cb378286..470ddd6c0 100644 --- a/src/state/config.rs +++ b/src/state/config.rs @@ -1,13 +1,17 @@ pub struct Config { pub attester_count: u64, - pub max_validators: u64 + pub max_validators: u64, + pub shard_count: u16, + pub notaries_per_crosslink: u16 } impl Config { pub fn standard() -> Self { Self { attester_count: 32, - max_validators: 2u64.pow(24) + max_validators: 2u64.pow(24), + shard_count: 20, + notaries_per_crosslink: 100 } } }