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
68572cdd
Unverified
Commit
68572cdd
authored
Aug 25, 2023
by
Barnabas Busa
Committed by
GitHub
Aug 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add multiple endpoint support for lightbeaconchain expolorer (#151)
parent
b0079cff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
light_beaconchain_launcher.star
src/light_beaconchain/light_beaconchain_launcher.star
+4
-3
config.yaml.tmpl
static_files/light-beaconchain-config/config.yaml.tmpl
+4
-1
No files found.
src/light_beaconchain/light_beaconchain_launcher.star
View file @
68572cdd
...
@@ -29,10 +29,11 @@ def launch_light_beacon(
...
@@ -29,10 +29,11 @@ def launch_light_beacon(
cl_client_contexts,
cl_client_contexts,
):
):
cl_client_info = []
all_cl_client_info = []
cl_client_info.append(new_cl_client_info(cl_client_contexts[0].ip_addr, cl_client_contexts[0].http_port_num, cl_client_contexts[0].beacon_service_name))
for index, client in enumerate(cl_client_contexts):
all_cl_client_info.append(new_cl_client_info(client.ip_addr, client.http_port_num, client.beacon_service_name))
template_data = new_config_template_data(HTTP_PORT_NUMBER, cl_client_info)
template_data = new_config_template_data(HTTP_PORT_NUMBER,
all_
cl_client_info)
template_and_data = shared_utils.new_template_and_data(config_template, template_data)
template_and_data = shared_utils.new_template_and_data(config_template, template_data)
template_and_data_by_rel_dest_filepath = {}
template_and_data_by_rel_dest_filepath = {}
...
...
static_files/light-beaconchain-config/config.yaml.tmpl
View file @
68572cdd
...
@@ -34,8 +34,11 @@ frontend:
...
@@ -34,8 +34,11 @@ frontend:
beaconapi:
beaconapi:
# CL Client RPC
# CL Client RPC
endpoints:
{{ range $clClient := .CLClientInfo }}
{{ range $clClient := .CLClientInfo }}
endpoint: "http://{{ $clClient.IPAddr }}:{{ $clClient.PortNum }}"
- url: "http://{{ $clClient.IPAddr }}:{{ $clClient.PortNum }}"
name: "{{ $clClient.Name }}"
archive: true
{{- end }}
{{- end }}
# local cache for page models
# local cache for page models
localCacheSize: 100 # 100MB
localCacheSize: 100 # 100MB
...
...
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