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
41d2cbb9
Commit
41d2cbb9
authored
Dec 12, 2022
by
Victor Colombo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have a non ENR version
parent
890faddc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
cl_node_health_checker.star
src/participant_network/cl/cl_node_health_checker.star
+1
-1
besu_launcher.star
src/participant_network/el/besu/besu_launcher.star
+1
-1
el_admin_node_info.star
src/participant_network/el/el_admin_node_info.star
+16
-1
nethermind_launcher.star
...articipant_network/el/nethermind/nethermind_launcher.star
+1
-1
No files found.
src/participant_network/cl/cl_node_health_checker.star
View file @
41d2cbb9
...
@@ -6,4 +6,4 @@ def wait_for_healthy(service_id, port_id):
...
@@ -6,4 +6,4 @@ def wait_for_healthy(service_id, port_id):
content_type = "application/json",
content_type = "application/json",
port_id = port_id
port_id = port_id
)
)
return wait(recipe, "code", "IN", [200, 206, 503])
return wait(recipe, "code", "IN", [200, 206, 503])
\ No newline at end of file
src/participant_network/el/besu/besu_launcher.star
View file @
41d2cbb9
...
@@ -60,7 +60,7 @@ def launch(
...
@@ -60,7 +60,7 @@ def launch(
service = add_service(service_id, config)
service = add_service(service_id, config)
enode, enr = el_admin_node_info.get_enode_
enr_
for_node(service_id, RPC_PORT_ID)
enode, enr = el_admin_node_info.get_enode_for_node(service_id, RPC_PORT_ID)
return el_client_context.new_el_client_context(
return el_client_context.new_el_client_context(
"besu",
"besu",
...
...
src/participant_network/el/el_admin_node_info.star
View file @
41d2cbb9
...
@@ -13,4 +13,19 @@ def get_enode_enr_for_node(service_id, port_id):
...
@@ -13,4 +13,19 @@ def get_enode_enr_for_node(service_id, port_id):
}
}
)
)
response = wait(recipe, "extract.enode", "!=", "")
response = wait(recipe, "extract.enode", "!=", "")
return (response["extract.enode"], response["extract.enr"])
return (response["extract.enode"], response["extract.enr"])
\ No newline at end of file
def get_enode_for_node(service_id, port_id):
recipe = struct(
service_id = service_id,
method= "POST",
endpoint = "",
body = '{"method":"admin_nodeInfo","params":[],"id":1,"jsonrpc":"2.0"}',
content_type = "application/json",
port_id = port_id,
extract = {
"enode": ".result.enode",
}
)
response = wait(recipe, "extract.enode", "!=", "")
return response["extract.enode"]
src/participant_network/el/nethermind/nethermind_launcher.star
View file @
41d2cbb9
...
@@ -55,7 +55,7 @@ def launch(
...
@@ -55,7 +55,7 @@ def launch(
service = add_service(service_id, config)
service = add_service(service_id, config)
enode, enr = el_admin_node_info.get_enode_
enr_
for_node(service_id, RPC_PORT_ID)
enode, enr = el_admin_node_info.get_enode_for_node(service_id, RPC_PORT_ID)
return el_client_context.new_el_client_context(
return el_client_context.new_el_client_context(
"nethermind",
"nethermind",
...
...
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