mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 17:03:46 +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
|
- ```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)
|
- ```maxpeers```: Maximum number of network peers (network disabled if set to 0) (default: 50)
|
||||||
|
|
||||||
- ```maxpendpeers```: Maximum number of pending connection attempts (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,
|
Default: c.cliConfig.P2P.TxArrivalWait,
|
||||||
Group: "P2P",
|
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
|
// metrics
|
||||||
f.BoolFlag(&flagset.BoolFlag{
|
f.BoolFlag(&flagset.BoolFlag{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue