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.
This commit is contained in:
Shane Bammel 2023-04-19 13:21:21 -05:00
parent de93ae97b8
commit 0ec879e672

View File

@ -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{