Skip to content

Commit

Permalink
make discovery port configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkenan committed Apr 22, 2024
1 parent b87159e commit 920f8b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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).")
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 920f8b6

Please sign in to comment.