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
8215a76a
Commit
8215a76a
authored
Jan 12, 2025
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seprate rpc port and http port
parent
a18fb255
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
bunnyfinder_launcher.star
src/bunnyfinder/bunnyfinder_launcher.star
+14
-1
config.toml.tmpl
static_files/bunnyfinder-config/config.toml.tmpl
+1
-0
No files found.
src/bunnyfinder/bunnyfinder_launcher.star
View file @
8215a76a
...
...
@@ -3,8 +3,13 @@ static_files = import_module("../static_files/static_files.star")
constants = import_module("../package_io/constants.star")
SERVICE_NAME = "bunnyfinder"
RPC_PORT_ID = "rpc"
RPC_PORT_NUMBER = 19000
HTTP_PORT_ID = "http"
HTTP_PORT_NUMBER = 19000
HTTP_PORT_NUMBER = 19100
BUNNYFINDER_CONFIG_FILENAME = "bunnyfinder-config.yaml"
...
...
@@ -22,6 +27,11 @@ USED_PORTS = {
HTTP_PORT_NUMBER,
shared_utils.TCP_PROTOCOL,
shared_utils.HTTP_APPLICATION_PROTOCOL,
),
RPC_PORT_ID: shared_utils.new_port_spec(
RPC_PORT_NUMBER,
shared_utils.TCP_PROTOCOL,
shared_utils.HTTP_APPLICATION_PROTOCOL,
)
}
...
...
@@ -54,6 +64,7 @@ def launch_bunnyfinder(
el_client.rpc_port_num,
)
template_data = new_config_template_data(
RPC_PORT_NUMBER,
HTTP_PORT_NUMBER,
cl_client.beacon_http_url,
el_http_url,
...
...
@@ -116,6 +127,7 @@ def get_config(
def new_config_template_data(
listen_rpc_port_num,
listen_port_num,
beacon_http_url,
execution_http_url,
...
...
@@ -123,6 +135,7 @@ def new_config_template_data(
):
return {
"DBConnect": bunnyfinder_params.dbconnect,
"ListenRPCPortNum": listen_rpc_port_num,
"ListenPortNum": listen_port_num,
"CL_HTTP_URL": beacon_http_url,
"EL_HTTP_URL": execution_http_url,
...
...
static_files/bunnyfinder-config/config.toml.tmpl
View file @
8215a76a
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 }}"
...
...
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