From 954eebde1b0e22be32823d467bfcfb00b2f46353 Mon Sep 17 00:00:00 2001 From: gabi-vuls Date: Tue, 16 Apr 2024 16:45:45 +0300 Subject: [PATCH] added cli flag for rounds-per-epoch --- testing-suite/staking-v4/config.py | 1 + testing-suite/staking-v4/core/chain_simulator.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/testing-suite/staking-v4/config.py b/testing-suite/staking-v4/config.py index 24129538..48be9349 100644 --- a/testing-suite/staking-v4/config.py +++ b/testing-suite/staking-v4/config.py @@ -25,3 +25,4 @@ num_waiting_validators_per_shard = "6" num_waiting_validators_meta = "6" +rounds_per_epoch = "50" diff --git a/testing-suite/staking-v4/core/chain_simulator.py b/testing-suite/staking-v4/core/chain_simulator.py index 426a4224..43dc7fda 100644 --- a/testing-suite/staking-v4/core/chain_simulator.py +++ b/testing-suite/staking-v4/core/chain_simulator.py @@ -18,14 +18,16 @@ def __init__(self, path: Path) -> None: self.num_validators_meta = num_validators_meta self.num_waiting_validators_per_shard = num_waiting_validators_per_shard self.num_waiting_validators_meta = num_waiting_validators_meta + self.rounds_per_epoch = rounds_per_epoch self.process = None def start(self): - command = f"./chainsimulator --log-level {self.log_level} \ + command = f"./chainsimulator --log-level {self.log_level} --rounds-per-epoch {rounds_per_epoch}\ -num-validators-per-shard {self.num_validators_per_shard} \ -num-waiting-validators-per-shard {num_waiting_validators_per_shard} \ -num-validators-meta {num_validators_meta} \ -num-waiting-validators-meta {num_waiting_validators_meta}" + flag = True while flag: if " " in command: