From 920f8b6d208c4b13018fc8f510f6db1b3de0b314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Arjovsky?= Date: Mon, 22 Apr 2024 15:15:47 +0200 Subject: [PATCH 1/2] make discovery port configurable --- config/runtime.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index 885a374be..9dc8a9ba0 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -44,6 +44,7 @@ metrics_port = Keyword.get(args, :metrics_port, if(enable_metrics, do: 9568, els validator_file = Keyword.get(args, :validator_file) enable_beacon_api = Keyword.get(args, :beacon_api, false) beacon_api_port = Keyword.get(args, :beacon_api_port, 4000) +discovery_port = Keyword.get(args, :discovery_port, 9000) if not is_nil(testnet_dir) and not is_nil(checkpoint_sync_url) do IO.puts("Both checkpoint sync and testnet url specified (only one should be specified).") @@ -106,7 +107,7 @@ config :lambda_ethereum_consensus, ChainSpec, config :lambda_ethereum_consensus, StoreSetup, strategy: strategy # Configures peer discovery -config :lambda_ethereum_consensus, :discovery, port: 9000, bootnodes: bootnodes +config :lambda_ethereum_consensus, :discovery, port: discovery_port, bootnodes: bootnodes # Engine API From 20e1d1e8553d33d5c73fb07dbe2ea21b3cfe79b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Arjovsky?= Date: Mon, 22 Apr 2024 16:54:31 +0200 Subject: [PATCH 2/2] add switch --- config/runtime.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/runtime.exs b/config/runtime.exs index 9dc8a9ba0..939cd74dc 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -18,7 +18,8 @@ switches = [ validator_file: :string, log_file: :string, beacon_api: :boolean, - beacon_api_port: :integer + beacon_api_port: :integer, + discovery_port: :integer ] is_testing = Config.config_env() == :test