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
8d58d8e3
Commit
8d58d8e3
authored
Nov 09, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this works against victors last commit
parent
58b41687
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
main.star
main.star
+9
-2
forkmon_launcher.star
src/forkmon/forkmon_launcher.star
+4
-4
participant_network.star
src/participant_network/participant_network.star
+1
-1
No files found.
main.star
View file @
8d58d8e3
...
...
@@ -5,12 +5,14 @@ load("github.com/kurtosis-tech/eth2-module/src/static_files/static_files.star",
load("github.com/kurtosis-tech/eth2-module/src/participant_network/prelaunch_data_generator/genesis_constants/genesis_constants.star", "PRE_FUNDED_ACCOUNTS")
load("github.com/kurtosis-tech/eth2-module/src/transaction_spammer/transaction_spammer.star", "launch_transaction_spammer")
load("github.com/kurtosis-tech/eth2-module/src/forkmon/forkmon_launcher.star", "launch_forkmon")
module_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
def main(input_args):
input_args_with_right_defaults = module_io.ModuleInput(parse_input(input_args))
num_participants = len(input_args_with_right_defaults.participants)
network_params = input_args_with_right_defaults.network_params
grafana_datasource_config_template = read_file(GRAFANA_DATASOURCE_CONFIG_TEMPLATE_FILEPATH)
grafana_dashboards_config_template = read_file(GRAFANA_DASHBOARD_PROVIDERS_CONFIG_TEMPLATE_FILEPATH)
...
...
@@ -18,8 +20,8 @@ def main(input_args):
print("Read the prometheus, grafana templates")
print("Launching participant network with {0} participants and the following network params {1}".format(num_participants,
input_args_with_right_defaults.
network_params))
all_participants, cl_gensis_timestamp = launch_participant_network(input_args_with_right_defaults.participants,
input_args_with_right_defaults.
network_params, input_args_with_right_defaults.global_client_log_level)
print("Launching participant network with {0} participants and the following network params {1}".format(num_participants, network_params))
all_participants, cl_gensis_timestamp = launch_participant_network(input_args_with_right_defaults.participants, network_params, input_args_with_right_defaults.global_client_log_level)
print(all_participants)
print(cl_gensis_timestamp)
...
...
@@ -41,6 +43,11 @@ def main(input_args):
# We need a way to do time.sleep
# TODO add code that waits for CL genesis
print("Launching forkmon")
forkmon_config_template = read_file(FORKMON_CONFIG_TEMPLATE_FILEPATH)
launch_forkmon(forkmon_config_template, all_cl_client_contexts, cl_gensis_timestamp, network_params.seconds_per_slot, network_params.slots_per_epoch)
print("Succesfully launched forkmon")
grafana_info = module_io.GrafanaInfo(
dashboard_path = "dummy_path",
...
...
src/forkmon/forkmon_launcher.star
View file @
8d58d8e3
...
...
@@ -5,7 +5,7 @@ SERVICE_ID = "forkmon"
IMAGE_NAME = "ralexstokes/ethereum_consensus_monitor:latest"
HTTP_PORT_ID = "http"
HTTP_PORT_NUMBER =
uint16(80)
HTTP_PORT_NUMBER =
80
HTTP_PROTOCOL = "TCP"
FORKMON_CONFIG_FILENAME = "forkmon-config.toml"
...
...
@@ -51,12 +51,12 @@ def get_service_config(config_files_artifact_uuid):
used_ports = USED_PORTS,
files_artifact_mount_dirpaths = {
config_files_artifact_uuid: FORKMON_CONFIG_MOUNT_DIRPATH_ON_SERVICE,
}
cmd_args = ["--config-path", config_file_path]
}
,
cmd_args = ["
/usr/src/ethereum_consensus_monitor", "
--config-path", config_file_path]
)
def new_config_template_data():
def new_config_template_data(
listen_port_num, cl_client_info, seconds_per_slot, slots_per_epoch, genesis_unix_timestamp
):
return {
"ListenPortNum": listen_port_num,
"CLClientInfo": cl_client_info,
...
...
src/participant_network/participant_network.star
View file @
8d58d8e3
...
...
@@ -158,7 +158,7 @@ def launch_participant_network(participants, network_params, global_log_level):
cl_client_context = launch_method(cl_launcher, cl_service_id, participant.cl_client_image, participant.cl_client_log_level, global_log_level, boot_cl_client_ctx,
el_client_context, mev_boost_context, new_cl_node_validator_keystores, participant.beacon_extra_params, participant.validator_extra_params)
all_cl_client_contexts.append(
e
l_client_context)
all_cl_client_contexts.append(
c
l_client_context)
all_participants = []
...
...
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