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
f8b08c23
Commit
f8b08c23
authored
Nov 22, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix nethermind
parent
765334f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
nethermind_launcher.star
...articipant_network/el/nethermind/nethermind_launcher.star
+12
-12
No files found.
src/participant_network/el/nethermind/nethermind_launcher.star
View file @
f8b08c23
load("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star", "new_port_spec", "path_join", "TCP_PROTOCOL", "UDP_PROTOCOL
")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star
")
load("github.com/kurtosis-tech/eth2-module/src/module_io/parse_input.star", "get_client_log_level_or_default
")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/module_io/parse_input.star
")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star", "new_el_client_context
")
el_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/el/el_client_context.star
")
module_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
module_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
...
@@ -24,11 +24,11 @@ ENGINE_RPC_PORT_ID = "engine-rpc"
...
@@ -24,11 +24,11 @@ ENGINE_RPC_PORT_ID = "engine-rpc"
PRIVATE_IP_ADDRESS_PLACEHOLDER = "KURTOSIS_IP_ADDR_PLACEHOLDER"
PRIVATE_IP_ADDRESS_PLACEHOLDER = "KURTOSIS_IP_ADDR_PLACEHOLDER"
USED_PORTS = {
USED_PORTS = {
RPC_PORT_ID:
new_port_spec(RPC_PORT_NUM,
TCP_PROTOCOL),
RPC_PORT_ID:
shared_utils.new_port_spec(RPC_PORT_NUM, shared_utils.
TCP_PROTOCOL),
WS_PORT_ID:
new_port_spec(WS_PORT_NUM,
TCP_PROTOCOL),
WS_PORT_ID:
shared_utils.new_port_spec(WS_PORT_NUM, shared_utils.
TCP_PROTOCOL),
TCP_DISCOVERY_PORT_ID:
new_port_spec(DISCOVERY_PORT_NUM,
TCP_PROTOCOL),
TCP_DISCOVERY_PORT_ID:
shared_utils.new_port_spec(DISCOVERY_PORT_NUM, shared_utils.
TCP_PROTOCOL),
UDP_DISCOVERY_PORT_ID:
new_port_spec(DISCOVERY_PORT_NUM,
UDP_PROTOCOL),
UDP_DISCOVERY_PORT_ID:
shared_utils.new_port_spec(DISCOVERY_PORT_NUM, shared_utils.
UDP_PROTOCOL),
ENGINE_RPC_PORT_ID:
new_port_spec(ENGINE_RPC_PORT_NUM,
TCP_PROTOCOL)
ENGINE_RPC_PORT_ID:
shared_utils.new_port_spec(ENGINE_RPC_PORT_NUM, shared_utils.
TCP_PROTOCOL)
}
}
NETHERMIND_LOG_LEVELS = {
NETHERMIND_LOG_LEVELS = {
...
@@ -51,7 +51,7 @@ def launch(
...
@@ -51,7 +51,7 @@ def launch(
existing_el_clients,
existing_el_clients,
extra_params):
extra_params):
log_level = get_client_log_level_or_default(participant_log_level, global_log_level, NETHERMIND_LOG_LEVELS)
log_level =
parse_input.
get_client_log_level_or_default(participant_log_level, global_log_level, NETHERMIND_LOG_LEVELS)
config = get_config(launcher.el_genesis_data, image, existing_el_clients, log_level, extra_params)
config = get_config(launcher.el_genesis_data, image, existing_el_clients, log_level, extra_params)
...
@@ -60,7 +60,7 @@ def launch(
...
@@ -60,7 +60,7 @@ def launch(
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))
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)
enode = wait(service_id = service_id, fact_name = ENODE_FACT_NAME)
return new_el_client_context(
return
el_client_context.
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
...
@@ -79,8 +79,8 @@ def get_config(genesis_data, image, existing_el_clients, log_level, extra_params
...
@@ -79,8 +79,8 @@ def get_config(genesis_data, image, existing_el_clients, log_level, extra_params
bootnode_1 = existing_el_clients[0]
bootnode_1 = existing_el_clients[0]
bootnode_2 = existing_el_clients[1]
bootnode_2 = existing_el_clients[1]
genesis_json_filepath_on_client = path_join(GENESIS_DATA_MOUNT_DIRPATH, genesis_data.nethermind_genesis_json_relative_filepath)
genesis_json_filepath_on_client =
shared_utils.
path_join(GENESIS_DATA_MOUNT_DIRPATH, genesis_data.nethermind_genesis_json_relative_filepath)
jwt_secret_json_filepath_on_client = path_join(GENESIS_DATA_MOUNT_DIRPATH, genesis_data.jwt_secret_relative_filepath)
jwt_secret_json_filepath_on_client =
shared_utils.
path_join(GENESIS_DATA_MOUNT_DIRPATH, genesis_data.jwt_secret_relative_filepath)
command_args = [
command_args = [
"--config=kiln",
"--config=kiln",
...
...
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