Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
tmp/
.idea/
test
params.yml
*.DS_Store
3 changes: 3 additions & 0 deletions src/cl/heimdall_v2/launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def launch(
cl_node_ids,
l1_rpc_url,
el_rpc_url,
el_grpc_url,
amqp_url,
container_proc_manager_artifact,
):
Expand All @@ -38,7 +39,9 @@ def launch(
# URLs.
"amqp_url": amqp_url,
"el_rpc_url": el_rpc_url,
"el_grpc_url": el_grpc_url,
"l1_rpc_url": l1_rpc_url,
"cl_bor_grpc_flag": participant.get("cl_bor_grpc_flag"),
# Port numbers.
"rest_api_port_number": shared.REST_API_PORT_NUMBER,
"grpc_port_number": shared.GRPC_PORT_NUMBER,
Expand Down
2 changes: 2 additions & 0 deletions src/cl/launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def launch(

el_node_name = el_launcher.generate_name(participant, id)
el_rpc_url = "http://{}:{}".format(el_node_name, el_shared.RPC_PORT_NUMBER)
el_grpc_url = "http://{}:{}".format(el_node_name, el_shared.GRPC_PORT_NUMBER)

service = launch_method(
plan,
Expand All @@ -51,6 +52,7 @@ def launch(
node_ids,
l1_rpc_url,
el_rpc_url,
el_grpc_url,
rabbitmq_url,
container_proc_manager_artifact,
)
Expand Down
1 change: 1 addition & 0 deletions src/config/input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ POLYGON_POS_PARTICIPANT = {
"cl_indexer_pruning_enabled": constants.CL_INDEXER_PRUNING_ENABLED,
"el_type": constants.EL_TYPE.bor,
"el_image": constants.IMAGES.get("l2_el_bor_image"),
"cl_bor_grpc_flag": False,
"count": 1,
}

Expand Down
1 change: 1 addition & 0 deletions src/config/sanity_check.star
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ POLYGON_POS_PARAMS = {
"el_bor_produce_witness", # Allow bor to start producing witnesses.
"el_bor_sync_with_witness", # Enable bor to sync new blocks using witnesses.
"el_bor_stateless_parallel_import", # Enable bor to use parallel import in stateless mode.
"cl_bor_grpc_flag", # Enable heimdall → bor gRPC transport (default HTTP).
"count",
],
"setup_images": [
Expand Down
5 changes: 5 additions & 0 deletions src/el/bor/launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def launch(
"discovery_port_number": shared.DISCOVERY_PORT_NUMBER,
"metrics_port_number": shared.METRICS_PORT_NUMBER,
"pprof_port_number": shared.PPROF_PORT_NUMBER,
"grpc_port_number": shared.GRPC_PORT_NUMBER,
"ethstats_server_port_number": constants.ETHSTATS_SERVER_PORT_NUMBER,
},
),
Expand Down Expand Up @@ -115,6 +116,10 @@ def launch(
number=shared.PPROF_PORT_NUMBER,
application_protocol="http",
),
shared.GRPC_PORT_ID: PortSpec(
number=shared.GRPC_PORT_NUMBER,
application_protocol="grpc",
),
},
files={
# app data
Expand Down
3 changes: 3 additions & 0 deletions src/el/shared.star
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ METRICS_PORT_NUMBER = 7071
PPROF_PORT_ID = "pprof"
PPROF_PORT_NUMBER = 6060

GRPC_PORT_ID = "grpc"
GRPC_PORT_NUMBER = 3131

# CPU and memory limits.
MAX_CPU = 4000 # in milicores (4 cores)
MAX_MEM = 16384 # in megabytes (16 GB)
4 changes: 2 additions & 2 deletions static_files/cl/heimdall_v2/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@ eth_rpc_url = "{{.l1_rpc_url}}"
bor_rpc_url = "{{.el_rpc_url}}"

# GRPC flag for bor chain
bor_grpc_flag = "false"
bor_grpc_flag = "{{ if .cl_bor_grpc_flag }}true{{ else }}false{{ end }}"

# GRPC endpoint for bor chain
bor_grpc_url = "localhost:3131"
bor_grpc_url = "{{.el_grpc_url}}"

# RPC endpoint for cometBFT
comet_bft_rpc_url = "http://0.0.0.0:{{.rpc_port_number}}"
Expand Down
4 changes: 4 additions & 0 deletions static_files/el/bor/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ ethstats = "{{.node_name}}:{{.ethstats_server_secret}}@ethstats-server:{{.ethsta
# Enable expensive metrics collection and reporting (default: false)
expensive = false

[grpc]
# gRPC server for heimdall-bor communication.
addr = "0.0.0.0:{{.grpc_port_number}}"

[pprof]
# Enable the pprof HTTP server (default: false)
pprof = true
Expand Down
Loading