diff options
Diffstat (limited to 'cmd/wnode/main.go')
-rw-r--r-- | cmd/wnode/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
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() |