mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Add flag discovery.dns
This commit is contained in:
parent
57a7f7fd6f
commit
19ab4720ae
2 changed files with 9 additions and 0 deletions
|
|
@ -218,6 +218,8 @@ The ```bor server``` command runs the Bor client.
|
|||
|
||||
- ```bootnodes```: Comma separated enode URLs for P2P discovery bootstrap
|
||||
|
||||
- ```discovery.dns```: Comma separated list of enrtree:// URLs which will be queried for nodes to connect to
|
||||
|
||||
- ```maxpeers```: Maximum number of network peers (network disabled if set to 0) (default: 50)
|
||||
|
||||
- ```maxpendpeers```: Maximum number of pending connection attempts (default: 50)
|
||||
|
|
|
|||
|
|
@ -806,6 +806,13 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
|
|||
Default: c.cliConfig.P2P.TxArrivalWait,
|
||||
Group: "P2P",
|
||||
})
|
||||
f.SliceStringFlag(&flagset.SliceStringFlag{
|
||||
Name: "discovery.dns",
|
||||
Usage: "Comma separated list of enrtree:// URLs which will be queried for nodes to connect to",
|
||||
Value: &c.cliConfig.P2P.Discovery.DNS,
|
||||
Default: c.cliConfig.P2P.Discovery.DNS,
|
||||
Group: "P2P",
|
||||
})
|
||||
|
||||
// metrics
|
||||
f.BoolFlag(&flagset.BoolFlag{
|
||||
|
|
|
|||
Loading…
Reference in a new issue