diff options
author | gluk256 <gluk256@users.noreply.github.com> | 2017-02-13 20:15:20 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-02-13 20:15:20 +0800 |
commit | 65ed6a9def4d23bbe6109ae4b841a56510d0c476 (patch) | |
tree | 4012f9fe986db7deb3d9c8dbf5b0ba5652f6e32c /cmd/wnode | |
parent | 564b60520c68a1f06171abd705c01946b932492f (diff) | |
download | dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.gz dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.tar.zst dexon-65ed6a9def4d23bbe6109ae4b841a56510d0c476.zip |
whisper: add tests for mailserver (#3631)
Diffstat (limited to 'cmd/wnode')
-rw-r--r-- | cmd/wnode/main.go | 7 |
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, |