mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
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:
parent
de93ae97b8
commit
0ec879e672
@ -6,7 +6,6 @@ import (
|
|||||||
"math"
|
"math"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/prysmaticlabs/prysm/v5/config/params"
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"github.com/urfave/cli/v2/altsrc"
|
"github.com/urfave/cli/v2/altsrc"
|
||||||
)
|
)
|
||||||
@ -100,7 +99,6 @@ var (
|
|||||||
BootstrapNode = &cli.StringSliceFlag{
|
BootstrapNode = &cli.StringSliceFlag{
|
||||||
Name: "bootstrap-node",
|
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.",
|
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 tells the beacon node which relay node to connect to.
|
||||||
RelayNode = &cli.StringFlag{
|
RelayNode = &cli.StringFlag{
|
||||||
|
Loading…
Reference in New Issue
Block a user