mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
cmd/utils, node: increase default maxpeers to 50 (#19497)
This commit is contained in:
parent
dd892c0b82
commit
216ee418f1
2 changed files with 3 additions and 3 deletions
|
|
@ -510,12 +510,12 @@ var (
|
||||||
MaxPeersFlag = cli.IntFlag{
|
MaxPeersFlag = cli.IntFlag{
|
||||||
Name: "maxpeers",
|
Name: "maxpeers",
|
||||||
Usage: "Maximum number of network peers (network disabled if set to 0)",
|
Usage: "Maximum number of network peers (network disabled if set to 0)",
|
||||||
Value: 25,
|
Value: node.DefaultConfig.P2P.MaxPeers,
|
||||||
}
|
}
|
||||||
MaxPendingPeersFlag = cli.IntFlag{
|
MaxPendingPeersFlag = cli.IntFlag{
|
||||||
Name: "maxpendpeers",
|
Name: "maxpendpeers",
|
||||||
Usage: "Maximum number of pending connection attempts (defaults used if set to 0)",
|
Usage: "Maximum number of pending connection attempts (defaults used if set to 0)",
|
||||||
Value: 0,
|
Value: node.DefaultConfig.P2P.MaxPendingPeers,
|
||||||
}
|
}
|
||||||
ListenPortFlag = cli.IntFlag{
|
ListenPortFlag = cli.IntFlag{
|
||||||
Name: "port",
|
Name: "port",
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ var DefaultConfig = Config{
|
||||||
WSModules: []string{"net", "web3"},
|
WSModules: []string{"net", "web3"},
|
||||||
P2P: p2p.Config{
|
P2P: p2p.Config{
|
||||||
ListenAddr: ":30303",
|
ListenAddr: ":30303",
|
||||||
MaxPeers: 25,
|
MaxPeers: 50,
|
||||||
NAT: nat.Any(),
|
NAT: nat.Any(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue