From 15a609d5d6613e37e819975ceba01cb5ba735242 Mon Sep 17 00:00:00 2001 From: gluk256 Date: Tue, 14 Feb 2017 15:44:47 +0100 Subject: whisper: interface changed to simplify the transition to v5 * whisper: mailserver test introduced, refactoring * whisper: validation test updated * whisper: max number of peers fixed * whisper: verification bug fixed * whisper: esthetic fix * whisper: interface changed to simplify the transition to v5 * whisper: preparation for version switch --- cmd/wnode/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/wnode/main.go') diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go index 55565eab2..175021798 100644 --- a/cmd/wnode/main.go +++ b/cmd/wnode/main.go @@ -198,10 +198,11 @@ func initialize() { utils.Fatalf("Failed to read Mail Server password: %s", err) } } - shh = whisper.NewWhisper(&mailServer) + shh = whisper.New() + shh.RegisterServer(&mailServer) mailServer.Init(shh, *argDBPath, msPassword, *argServerPoW) } else { - shh = whisper.NewWhisper(nil) + shh = whisper.New() } asymKey = shh.NewIdentity() -- cgit v1.2.3