aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/wnode
diff options
context:
space:
mode:
authorgluk256 <gluk256@users.noreply.github.com>2017-02-13 20:15:20 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-02-13 20:15:20 +0800
commit65ed6a9def4d23bbe6109ae4b841a56510d0c476 (patch)
tree4012f9fe986db7deb3d9c8dbf5b0ba5652f6e32c /cmd/wnode
parent564b60520c68a1f06171abd705c01946b932492f (diff)
downloaddexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar
dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.gz
dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.bz2
dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.lz
dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.xz
dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.zst
dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.zip
whisper: add tests for mailserver (#3631)
Diffstat (limited to 'cmd/wnode')
-rw-r--r--cmd/wnode/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go
index cbf093aa7..55565eab2 100644
--- a/cmd/wnode/main.go
+++ b/cmd/wnode/main.go
@@ -209,10 +209,15 @@ func initialize() {
nodeid = shh.NewIdentity()
}
+ maxPeers := 80
+ if *bootstrapMode {
+ maxPeers = 800
+ }
+
server = &p2p.Server{
Config: p2p.Config{
PrivateKey: nodeid,
- MaxPeers: 128,
+ MaxPeers: maxPeers,
Name: common.MakeName("whisper-go", "5.0"),
Protocols: shh.Protocols(),
ListenAddr: *argIP,