diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-02 18:56:19 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | d227987bb07f2f731629809daf3d6687f9cdaae4 (patch) | |
tree | c1a702607256c776d745150fd44a0c37b7ab96aa | |
parent | fec4ee809e1f304376316445e58a8dae92a2ac7b (diff) | |
download | dexon-d227987bb07f2f731629809daf3d6687f9cdaae4.tar.gz dexon-d227987bb07f2f731629809daf3d6687f9cdaae4.tar.zst dexon-d227987bb07f2f731629809daf3d6687f9cdaae4.zip |
node: increase default max number of peers (#120)
-rw-r--r-- | cmd/utils/flags.go | 2 | ||||
-rw-r--r-- | node/defaults.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index e4beb9cd4..6f8d374b2 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -504,7 +504,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(), }, } |