Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

feat: support repeating the exec/consensus client pairs via count #49

Merged
merged 6 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ these and other parameters are configurable through a json file Read more about
// "https://0xdeadbeefcafc@relay.example.com",
// "https://0xdeadbeefcafd@relay.example.com"
// ]
"builder_network_params": null
"builder_network_params": null,

// The number of times this participant should be repeated
// defaults to 1(i.e no repetition). This is optional.
"count": 1
}
],

Expand Down Expand Up @@ -126,7 +130,8 @@ For example, this `eth-network-params.json` adds a second node, running a differ
"beacon_extra_params": [],
"el_extra_params": [],
"validator_extra_params": [],
"builder_network_params": null
"builder_network_params": null,
"count": 1
},{
"el_client_type": "nethermind",
"el_client_image": "",
Expand All @@ -137,7 +142,8 @@ For example, this `eth-network-params.json` adds a second node, running a differ
"beacon_extra_params": [],
"el_extra_params": [],
"validator_extra_params": [],
"builder_network_params": null
"builder_network_params": null,
"count": 1
}],
"network_params":{
"preregistered_validator_keys_mnemonic": "giant issue aisle success illegal bike spike question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy very lucky have athlete",
Expand Down
27 changes: 14 additions & 13 deletions default-network-params.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"participants":[{
"participants":[{
"el_client_type": "geth",
"el_client_image": "",
"el_client_log_level": "",
Expand All @@ -9,16 +9,17 @@
"beacon_extra_params": [],
"el_extra_params": [],
"validator_extra_params": [],
"builder_network_params": null
}],
"network_params":{
"preregistered_validator_keys_mnemonic": "giant issue aisle success illegal bike spike question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy very lucky have athlete",
"num_validator_keys_per_node": 64,
"network_id": "3151908",
"deposit_contract_address": "0x4242424242424242424242424242424242424242",
"seconds_per_slot": 12,
"genesis_delay": 120,
"capella_fork_epoch": 5
},
"global_client_log_level": "info"
"builder_network_params": null,
"count": 5
h4ck3rk3y marked this conversation as resolved.
Show resolved Hide resolved
}],
"network_params":{
"preregistered_validator_keys_mnemonic": "giant issue aisle success illegal bike spike question tent bar rely arctic volcano long crawl hungry vocal artwork sniff fantasy very lucky have athlete",
"num_validator_keys_per_node": 64,
"network_id": "3151908",
"deposit_contract_address": "0x4242424242424242424242424242424242424242",
"seconds_per_slot": 12,
"genesis_delay": 120,
"capella_fork_epoch": 5
},
"global_client_log_level": "info"
}
6 changes: 4 additions & 2 deletions package_io/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def parse_input(input_args):
for sub_attr, sub_value in participant.items():
# if the value is set in input we set it in participant
new_participant[sub_attr] = sub_value
participants.append(new_participant)
for _ in range(0, new_participant["count"]):
participants.append(new_participant)
result["participants"] = participants

# validation of the above defaults
Expand Down Expand Up @@ -179,5 +180,6 @@ def default_participant():
"beacon_extra_params": [],
"el_extra_params": [],
"validator_extra_params": [],
"builder_network_params": None
"builder_network_params": None,
"count": 1
}