whisper: add tests for mailserver (#3631)

This commit is contained in:
gluk256
2017-02-13 13:15:20 +01:00
committed by Felix Lange
parent 564b60520c
commit 65ed6a9def
3 changed files with 217 additions and 9 deletions

View File

@ -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,