Merge pull request #19497 from karalabe/peers-50

cmd/utils, node: switch over default peer count to 50
ChrisChinchilla-patch-3
Péter Szilágyi 6 years ago committed by GitHub
commit 92a849a509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/utils/flags.go
  2. 2
      node/defaults.go

@ -565,12 +565,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",

@ -47,7 +47,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…
Cancel
Save