Commit 68572cdd authored by Barnabas Busa's avatar Barnabas Busa Committed by GitHub

feat: add multiple endpoint support for lightbeaconchain expolorer (#151)

parent b0079cff
...@@ -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 = {}
......
...@@ -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
......
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