Commit 41d2cbb9 authored by Victor Colombo's avatar Victor Colombo

Have a non ENR version

parent 890faddc
...@@ -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
...@@ -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",
......
...@@ -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"]
...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment