aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-01-02 18:56:19 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:55 +0800
commit4e5dae94944abed607fc2e184dfb26267c5fa541 (patch)
treecdcba33b1c97d8048471b6a6b3099ba775b926b8
parent96b70e6992620e17a1a64663d87d565e09dc1308 (diff)
downloaddexon-4e5dae94944abed607fc2e184dfb26267c5fa541.tar.gz
dexon-4e5dae94944abed607fc2e184dfb26267c5fa541.tar.zst
dexon-4e5dae94944abed607fc2e184dfb26267c5fa541.zip
node: increase default max number of peers (#120)
-rw-r--r--cmd/utils/flags.go2
-rw-r--r--node/defaults.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 28ac6b9c6..1f1db9fc3 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -509,7 +509,7 @@ var (
MaxPeersFlag = cli.IntFlag{
Name: "maxpeers",
Usage: "Maximum number of network peers (network disabled if set to 0)",
- Value: 25,
+ Value: 100,
}
MaxPendingPeersFlag = cli.IntFlag{
Name: "maxpendpeers",
diff --git a/node/defaults.go b/node/defaults.go
index ec4fc8039..90db6ea68 100644
--- a/node/defaults.go
+++ b/node/defaults.go
@@ -45,7 +45,7 @@ var DefaultConfig = Config{
WSModules: []string{"net", "web3"},
P2P: p2p.Config{
ListenAddr: ":30303",
- MaxPeers: 25,
+ MaxPeers: 100,
NAT: nat.Any(),
},
}