From c731c67a50b69b72535bfc1a73ee6b4486f64fa9 Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Mon, 23 Dec 2019 13:39:27 +0100 Subject: [PATCH] add copyright header to state_sim and run it in mainnet config, like the other tests, in CI --- beacon_chain.nimble | 3 ++- research/state_sim.nim | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/beacon_chain.nimble b/beacon_chain.nimble index 52cd1bfbd..c207dea24 100644 --- a/beacon_chain.nimble +++ b/beacon_chain.nimble @@ -61,5 +61,6 @@ task test, "Run all tests": buildBinary "all_fixtures_require_ssz", "tests/official/", "-r -d:release -d:chronicles_log_level=TRACE -d:const_preset=mainnet" # State sim; getting into 4th epoch useful to trigger consensus checks - buildBinary "state_sim", "research/", "-r -d:release", "--validators=128 --slots=40" + buildBinary "state_sim", "research/", "-r -d:release", "--validators=1024 --slots=32" + buildBinary "state_sim", "research/", "-r -d:release -d:const_preset=mainnet", "--validators=1024 --slots=128" diff --git a/research/state_sim.nim b/research/state_sim.nim index 2f49b2aa6..4402f2946 100644 --- a/research/state_sim.nim +++ b/research/state_sim.nim @@ -1,3 +1,10 @@ +# beacon_chain +# Copyright (c) 2019 Status Research & Development GmbH +# Licensed and distributed under either of +# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). +# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). +# at your option. This file may not be copied, modified, or distributed except according to those terms. + import confutils, stats, times, std/monotimes, strformat,