Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
6655dfa0
Commit
6655dfa0
authored
Nov 28, 2022
by
guillaume.bouvignies
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `input_args` to `args`
parent
f336ba13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
changelog.md
docs/changelog.md
+3
-0
main.star
main.star
+10
-10
No files found.
docs/changelog.md
View file @
6655dfa0
# TBD
### Changes
-
Updated
`run(input_args)`
to
`run(args)`
# 0.0.3
### Changes
...
...
main.star
View file @
6655dfa0
...
...
@@ -17,11 +17,11 @@ GRAFANA_DASHBOARD_PATH_URL = "/d/QdTOwy-nz/eth2-merge-kurtosis-module-dashboard?
FIRST_NODE_FINALIZATION_FACT = "cl-boot-finalization-fact"
HTTP_PORT_ID_FOR_FACT = "http"
def run(
input_
args):
input_args_with_right_defaults = parse_input.parse_input(input_
args)
def run(args):
args_with_right_defaults = parse_input.parse_input(
args)
num_participants = len(
input_
args_with_right_defaults.participants)
network_params =
input_
args_with_right_defaults.network_params
num_participants = len(args_with_right_defaults.participants)
network_params = args_with_right_defaults.network_params
grafana_datasource_config_template = read_file(static_files.GRAFANA_DATASOURCE_CONFIG_TEMPLATE_FILEPATH)
grafana_dashboards_config_template = read_file(static_files.GRAFANA_DASHBOARD_PROVIDERS_CONFIG_TEMPLATE_FILEPATH)
...
...
@@ -30,7 +30,7 @@ def run(input_args):
print("Read the prometheus, grafana templates")
print("Launching participant network with {0} participants and the following network params {1}".format(num_participants, network_params))
all_participants, cl_gensis_timestamp = participant_network.launch_participant_network(
input_args_with_right_defaults.participants, network_params, input_
args_with_right_defaults.global_client_log_level)
all_participants, cl_gensis_timestamp = participant_network.launch_participant_network(
args_with_right_defaults.participants, network_params,
args_with_right_defaults.global_client_log_level)
all_el_client_contexts = []
all_cl_client_contexts = []
...
...
@@ -39,7 +39,7 @@ def run(input_args):
all_cl_client_contexts.append(participant.cl_client_context)
if not
input_
args_with_right_defaults.launch_additional_services:
if not args_with_right_defaults.launch_additional_services:
return
print("Launching transaction spammer")
...
...
@@ -65,15 +65,15 @@ def run(input_args):
grafana.launch_grafana(grafana_datasource_config_template, grafana_dashboards_config_template, prometheus_private_url)
print("Succesfully launched grafana")
if
input_
args_with_right_defaults.wait_for_verifications:
if args_with_right_defaults.wait_for_verifications:
print("Running synchrnous testnet verifier")
testnet_verifier.run_synchronous_testnet_verification(
input_
args_with_right_defaults, all_el_client_contexts, all_cl_client_contexts)
testnet_verifier.run_synchronous_testnet_verification(args_with_right_defaults, all_el_client_contexts, all_cl_client_contexts)
print("Verification succeeded")
else:
print("Running asynchronous verification")
testnet_verifier.launch_testnet_verifier(
input_
args_with_right_defaults, all_el_client_contexts, all_cl_client_contexts)
testnet_verifier.launch_testnet_verifier(args_with_right_defaults, all_el_client_contexts, all_cl_client_contexts)
print("Succesfully launched asynchronous verifier")
if
input_
args_with_right_defaults.wait_for_finalization:
if args_with_right_defaults.wait_for_finalization:
print("Waiting for the first finalized epoch")
first_cl_client = all_cl_client_contexts[0]
first_cl_client_id = first_cl_client.beacon_service_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment