Skip to content

Commit 1df9868

Browse files
syjn99fernantho
authored andcommitted
Add p2p address format for CLI users (OffchainLabs#14886)
* Add address format for CLI users * Add changelog
1 parent 66f8daf commit 1df9868

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Added
2+
3+
- Add acceptable address types for static peers

cmd/flags.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,20 @@ var (
9393
Name: "no-discovery",
9494
Usage: "Enable only local network p2p and do not connect to cloud bootstrap nodes",
9595
}
96-
// StaticPeers specifies a set of peers to connect to explicitly.
96+
// StaticPeers specifies a set of peers to connect to explicitly, accepting following format of addresses:
97+
// enode, multiaddr, enr.
9798
StaticPeers = &cli.StringSliceFlag{
98-
Name: "peer",
99-
Usage: "Connect with this peer, this flag may be used multiple times. This peer is recognized as a trusted peer.",
99+
Name: "peer",
100+
Usage: "Connect with this peer, this flag may be used multiple times. " +
101+
"This peer is recognized as a trusted peer." +
102+
"Accepts enode, multiaddr, and enr formats.",
100103
}
101104
// BootstrapNode tells the beacon node which bootstrap node to connect to
102105
BootstrapNode = &cli.StringSliceFlag{
103-
Name: "bootstrap-node",
104-
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.",
106+
Name: "bootstrap-node",
107+
Usage: "The enr/enode address of bootstrap node. Beacon node will connect for peer discovery via DHT. " +
108+
"Multiple nodes can be passed by using the flag multiple times but not comma-separated. " +
109+
"You can also pass YAML files containing multiple nodes.",
105110
Value: cli.NewStringSlice(params.BeaconNetworkConfig().BootstrapNodes...),
106111
}
107112
// RelayNode tells the beacon node which relay node to connect to.

0 commit comments

Comments
 (0)