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
c4ae15e5
Commit
c4ae15e5
authored
Feb 11, 2025
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new param
parent
4873e3af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
bunnyfinder_launcher.star
src/bunnyfinder/bunnyfinder_launcher.star
+21
-0
config.toml.tmpl
static_files/bunnyfinder-config/config.toml.tmpl
+1
-0
No files found.
src/bunnyfinder/bunnyfinder_launcher.star
View file @
c4ae15e5
...
...
@@ -49,6 +49,13 @@ def launch_bunnyfinder(
fail(
"dbconnect is required in bunnyfinder_params"
)
honest_cl_http_url = ""
if len(participant_contexts) >= 2:
participant = participant_contexts[1]
_, cl_client, _, _ = shared_utils.get_client_names(
participant, 0, participant_contexts, participant_configs
)
honest_cl_http_url = cl_client.beacon_http_url
participant = participant_contexts[0]
(
...
...
@@ -63,10 +70,21 @@ def launch_bunnyfinder(
el_client.ip_addr,
el_client.rpc_port_num,
)
if honest_cl_http_url == "":
honest_cl_http_url = cl_client.beacon_http_url
plan.print(
"Launching bunnyfinder with CL HTTP URL: {0}, Honest CL HTTP URL: {1}, EL HTTP URL: {2}".format(
cl_client.beacon_http_url, honest_cl_http_url, el_http_url
)
)
template_data = new_config_template_data(
RPC_PORT_NUMBER,
HTTP_PORT_NUMBER,
cl_client.beacon_http_url,
honest_cl_http_url,
el_http_url,
bunnyfinder_params,
)
...
...
@@ -130,6 +148,7 @@ def new_config_template_data(
listen_rpc_port_num,
listen_port_num,
beacon_http_url,
honest_beacon_http_url,
execution_http_url,
bunnyfinder_params,
):
...
...
@@ -138,5 +157,7 @@ def new_config_template_data(
"ListenRPCPortNum": listen_rpc_port_num,
"ListenPortNum": listen_port_num,
"CL_HTTP_URL": beacon_http_url,
"HONEST_CL_HTTP_URL": honest_beacon_http_url,
"EL_HTTP_URL": execution_http_url,
}
static_files/bunnyfinder-config/config.toml.tmpl
View file @
c4ae15e5
...
...
@@ -2,6 +2,7 @@ rpc_port = {{ .ListenRPCPortNum }} # rpc port, rest api port is http_port+1.
http_port = {{ .ListenPortNum }} # rpc port, rest api port is http_port+1.
execute_rpc = "{{ .EL_HTTP_URL }}"
beacon_rpc = "{{ .CL_HTTP_URL }}"
honest_beacon_rpc = "{{ .HONEST_CL_HTTP_URL }}"
dbconnect = "{{ .DBConnect }}"
reward_file = "/root/reward.csv"
swag_host = "127.0.0.1:12100"
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