From 0ec879e6729b2c1ff66c2b6fd3278e67ba73c3c8 Mon Sep 17 00:00:00 2001 From: Shane Bammel Date: Wed, 19 Apr 2023 13:21:21 -0500 Subject: [PATCH] Fix BootstrapNode flag The default value was overriding the bootnodes of built-in networks with the mainnet bootnodes, regardless of the network configured via network flags (--pulsechain-testnet-v4). Removing this default allows mainnet and other networks to function without requiring the flag. --- cmd/flags.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/flags.go b/cmd/flags.go index 4ca69ea47..bb2915434 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -6,7 +6,6 @@ import ( "math" "strings" - "github.com/prysmaticlabs/prysm/v5/config/params" "github.com/urfave/cli/v2" "github.com/urfave/cli/v2/altsrc" ) @@ -100,7 +99,6 @@ var ( BootstrapNode = &cli.StringSliceFlag{ Name: "bootstrap-node", Usage: "The address of bootstrap node. Beacon node will connect for peer discovery via DHT. Multiple nodes can be passed by using the flag multiple times but not comma-separated. You can also pass YAML files containing multiple nodes.", - Value: cli.NewStringSlice(params.BeaconNetworkConfig().BootstrapNodes...), } // RelayNode tells the beacon node which relay node to connect to. RelayNode = &cli.StringFlag{