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
0f1381a1
Commit
0f1381a1
authored
Nov 10, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make output less verbose
parent
05240578
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
main.star
main.star
+0
-3
nethermind_launcher.star
...articipant_network/el/nethermind/nethermind_launcher.star
+5
-5
participant_network.star
src/participant_network/participant_network.star
+4
-0
No files found.
main.star
View file @
0f1381a1
...
@@ -31,9 +31,6 @@ def main(input_args):
...
@@ -31,9 +31,6 @@ def main(input_args):
print("Launching participant network with {0} participants and the following network params {1}".format(num_participants, network_params))
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)
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)
all_el_client_contexts = []
all_el_client_contexts = []
all_cl_client_contexts = []
all_cl_client_contexts = []
for participant in all_participants:
for participant in all_participants:
...
...
src/participant_network/el/nethermind/nethermind_launcher.star
View file @
0f1381a1
...
@@ -65,13 +65,15 @@ def launch(
...
@@ -65,13 +65,15 @@ def launch(
service = add_service(service_id, service_config)
service = add_service(service_id, service_config)
# TODO add facts & waits
# TODO this fact might start breaking if the endpoint requires a leading slash, currently breaks with a leading slash
define_fact(service_id = service_id, fact_name = ENODE_FACT_NAME, fact_recipe = struct(method= "POST", endpoint = "", field_extractor = ".result.enode", body = '{"method":"admin_nodeInfo","params":[],"id":1,"jsonrpc":"2.0"}', content_type = "application/json", port_id = RPC_PORT_ID))
enode = wait(service_id = service_id, fact_name = ENODE_FACT_NAME)
return new_el_client_context(
return new_el_client_context(
"nethermind",
"nethermind",
"", # nethermind has no ENR in the eth2-merge-kurtosis-module either
"", # nethermind has no ENR in the eth2-merge-kurtosis-module either
# Nethermind node info endpoint doesn't return ENR field https://docs.nethermind.io/nethermind/ethereum-client/json-rpc/admin
# Nethermind node info endpoint doesn't return ENR field https://docs.nethermind.io/nethermind/ethereum-client/json-rpc/admin
"", # TODO add Enode from wait & fact
,
enode
,
service.ip_address,
service.ip_address,
RPC_PORT_NUM,
RPC_PORT_NUM,
WS_PORT_NUM,
WS_PORT_NUM,
...
@@ -128,9 +130,7 @@ def get_service_config(genesis_data, image, existing_el_clients, log_level, extr
...
@@ -128,9 +130,7 @@ def get_service_config(genesis_data, image, existing_el_clients, log_level, extr
files_artifact_mount_dirpaths = {
files_artifact_mount_dirpaths = {
genesis_data.files_artifact_uuid: GENESIS_DATA_MOUNT_DIRPATH
genesis_data.files_artifact_uuid: GENESIS_DATA_MOUNT_DIRPATH
},
},
# TODO add private IP address place holder when add servicde supports it
privaite_ip_address_placeholder = PRIVATE_IP_ADDRESS_PLACEHOLDER,
# for now this will work as we use the service config default above
# https://github.com/kurtosis-tech/kurtosis/pull/290
)
)
...
...
src/participant_network/participant_network.star
View file @
0f1381a1
...
@@ -10,6 +10,7 @@ load("github.com/kurtosis-tech/eth2-module/src/static_files/static_files.star",
...
@@ -10,6 +10,7 @@ load("github.com/kurtosis-tech/eth2-module/src/static_files/static_files.star",
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/geth/geth_launcher.star", launch_geth="launch", "new_geth_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/geth/geth_launcher.star", launch_geth="launch", "new_geth_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/besu/besu_launcher.star", launch_besu="launch", "new_besu_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/besu/besu_launcher.star", launch_besu="launch", "new_besu_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/erigon/erigon_launcher.star", launch_erigon="launch", "new_erigon_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/erigon/erigon_launcher.star", launch_erigon="launch", "new_erigon_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/nethermind/nethermind_launcher.star", launch_nethermind="launch", "new_nethermind_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/lighthouse/lighthouse_launcher.star", launch_lighthouse="launch", "new_lighthouse_launcher")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/lighthouse/lighthouse_launcher.star", launch_lighthouse="launch", "new_lighthouse_launcher")
...
@@ -78,6 +79,7 @@ def launch_participant_network(participants, network_params, global_log_level):
...
@@ -78,6 +79,7 @@ def launch_participant_network(participants, network_params, global_log_level):
module_io.ELClientType.geth : {"launcher": new_geth_launcher(network_params.network_id, el_genesis_data, geth_prefunded_keys_artifact_id, PRE_FUNDED_ACCOUNTS), "launch_method": launch_geth},
module_io.ELClientType.geth : {"launcher": new_geth_launcher(network_params.network_id, el_genesis_data, geth_prefunded_keys_artifact_id, PRE_FUNDED_ACCOUNTS), "launch_method": launch_geth},
module_io.ELClientType.besu : {"launcher": new_besu_launcher(network_params.network_id, el_genesis_data), "launch_method": launch_besu},
module_io.ELClientType.besu : {"launcher": new_besu_launcher(network_params.network_id, el_genesis_data), "launch_method": launch_besu},
module_io.ELClientType.erigon : {"launcher": new_erigon_launcher(network_params.network_id, el_genesis_data), "launch_method": launch_erigon},
module_io.ELClientType.erigon : {"launcher": new_erigon_launcher(network_params.network_id, el_genesis_data), "launch_method": launch_erigon},
module_io.ELClientType.nethermind : {"launcher": new_nethermind_launcher(network_params.network_id, el_genesis_data)},
}
}
all_el_client_contexts = []
all_el_client_contexts = []
...
@@ -166,6 +168,8 @@ def launch_participant_network(participants, network_params, global_log_level):
...
@@ -166,6 +168,8 @@ def launch_participant_network(participants, network_params, global_log_level):
all_cl_client_contexts.append(cl_client_context)
all_cl_client_contexts.append(cl_client_context)
print("Succesfully added {0} CL participants".format(num_participants))
all_participants = []
all_participants = []
for index, participant in enumerate(participants):
for index, participant in enumerate(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