Skip to content

Commit

Permalink
cmd: update ha bootnode dns (#1029)
Browse files Browse the repository at this point in the history
Update/Add the new DNS of the public HA bootnodes

category: misc
ticket: #895
  • Loading branch information
aly-obol authored Aug 24, 2022
1 parent e33af12 commit fb0c102
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/cmd_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestCmdFlags(t *testing.T) {
Format: "console",
},
P2P: p2p.Config{
UDPBootnodes: []string{"http://bootnode.gcp.obol.tech:3640/enr"},
UDPBootnodes: []string{"http://bootnode.lb.gcp.obol.tech:3640/enr"},
UDPAddr: "127.0.0.1:3630",
TCPAddrs: []string{"127.0.0.1:3610"},
Allowlist: "",
Expand All @@ -97,7 +97,7 @@ func TestCmdFlags(t *testing.T) {
Args: slice("create", "enr"),
Datadir: ".charon",
P2PConfig: &p2p.Config{
UDPBootnodes: []string{"http://bootnode.gcp.obol.tech:3640/enr"},
UDPBootnodes: []string{"http://bootnode.lb.gcp.obol.tech:3640/enr"},
UDPAddr: "127.0.0.1:3630",
TCPAddrs: []string{"127.0.0.1:3610"},
Allowlist: "",
Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func bindDataDirFlag(flags *pflag.FlagSet, dataDir *string) {
}

func bindP2PFlags(flags *pflag.FlagSet, config *p2p.Config) {
flags.StringSliceVar(&config.UDPBootnodes, "p2p-bootnodes", []string{"http://bootnode.gcp.obol.tech:3640/enr"}, "Comma-separated list of discv5 bootnode URLs or ENRs.")
flags.StringSliceVar(&config.UDPBootnodes, "p2p-bootnodes", []string{"http://bootnode.lb.gcp.obol.tech:3640/enr"}, "Comma-separated list of discv5 bootnode URLs or ENRs.")
flags.BoolVar(&config.BootnodeRelay, "p2p-bootnode-relay", false, "Enables using bootnodes as libp2p circuit relays. Useful if some charon nodes are not have publicly accessible.")
flags.BoolVar(&config.UDPBootLock, "p2p-bootnodes-from-lockfile", false, "Enables using cluster lock ENRs as discv5 bootnodes. Allows skipping explicit bootnodes if key generation ceremony included correct IPs.")
flags.StringVar(&config.UDPAddr, "p2p-udp-address", "127.0.0.1:3630", "Listening UDP address (ip and port) for discv5 discovery.")
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Flags:
--no-verify Disables cluster definition and lock file verification.
--p2p-allowlist string Comma-separated list of CIDR subnets for allowing only certain peer connections. Example: 192.168.0.0/16 would permit connections to peers on your local network only. The default is to accept all connections.
--p2p-bootnode-relay Enables using bootnodes as libp2p circuit relays. Useful if some charon nodes are not have publicly accessible.
--p2p-bootnodes strings Comma-separated list of discv5 bootnode URLs or ENRs. (default [http://bootnode.gcp.obol.tech:3640/enr])
--p2p-bootnodes strings Comma-separated list of discv5 bootnode URLs or ENRs. (default [http://bootnode.lb.gcp.obol.tech:3640/enr])
--p2p-bootnodes-from-lockfile Enables using cluster lock ENRs as discv5 bootnodes. Allows skipping explicit bootnodes if key generation ceremony included correct IPs.
--p2p-denylist string Comma-separated list of CIDR subnets for disallowing certain peer connections. Example: 192.168.0.0/16 would disallow connections to peers on your local network. The default is to accept all connections.
--p2p-external-hostname string The DNS hostname advertised by libp2p. This may be used to advertise an external DNS.
Expand Down

0 comments on commit fb0c102

Please sign in to comment.