Skip to content

Commit

Permalink
added cli flag for rounds-per-epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
gabi-vuls committed Apr 16, 2024
1 parent 45264d5 commit 954eebd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions testing-suite/staking-v4/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
num_waiting_validators_per_shard = "6"
num_waiting_validators_meta = "6"

rounds_per_epoch = "50"
4 changes: 3 additions & 1 deletion testing-suite/staking-v4/core/chain_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 954eebd

Please sign in to comment.