aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-04-25 22:25:09 +0800
committerGitHub <noreply@github.com>2019-04-25 22:25:09 +0800
commit92a849a5095a3d53b8c7d52be32c583ef2acdc6d (patch)
treeee00f3e11b30567ddec1ed12764a5308a8b5473f
parent937417527cde7e5b392a5b95b85ccc185eb2aeb5 (diff)
parent0758d7fe5c3443fd50e6b46f494a47e28d35a961 (diff)
downloadgo-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.tar
go-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.tar.gz
go-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.tar.bz2
go-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.tar.lz
go-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.tar.xz
go-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.tar.zst
go-tangerine-92a849a5095a3d53b8c7d52be32c583ef2acdc6d.zip
Merge pull request #19497 from karalabe/peers-50
cmd/utils, node: switch over default peer count to 50
-rw-r--r--cmd/utils/flags.go4
-rw-r--r--node/defaults.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 513557a03..ab4060dd2 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -565,12 +565,12 @@ var (
MaxPeersFlag = cli.IntFlag{
Name: "maxpeers",
Usage: "Maximum number of network peers (network disabled if set to 0)",
- Value: 25,
+ Value: node.DefaultConfig.P2P.MaxPeers,
}
MaxPendingPeersFlag = cli.IntFlag{
Name: "maxpendpeers",
Usage: "Maximum number of pending connection attempts (defaults used if set to 0)",
- Value: 0,
+ Value: node.DefaultConfig.P2P.MaxPendingPeers,
}
ListenPortFlag = cli.IntFlag{
Name: "port",
diff --git a/node/defaults.go b/node/defaults.go
index 71e763346..564bb35b4 100644
--- a/node/defaults.go
+++ b/node/defaults.go
@@ -47,7 +47,7 @@ var DefaultConfig = Config{
WSModules: []string{"net", "web3"},
P2P: p2p.Config{
ListenAddr: ":30303",
- MaxPeers: 25,
+ MaxPeers: 50,
NAT: nat.Any(),
},
}