From 0a7e1288110182abd6c101d255ee6e012a1454e0 Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 1 Feb 2017 16:38:18 +0100 Subject: [PATCH] whisper: max number of peers fixed --- cmd/wnode/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go index cbf093aa7e..55565eab26 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,