From 65ed6a9def4d23bbe6109ae4b841a56510d0c476 Mon Sep 17 00:00:00 2001 From: gluk256 Date: Mon, 13 Feb 2017 13:15:20 +0100 Subject: whisper: add tests for mailserver (#3631) --- cmd/wnode/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd') 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, -- cgit v1.2.3