diff options
author | gluk256 <gluk256@users.noreply.github.com> | 2017-02-14 22:44:47 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-14 22:44:47 +0800 |
commit | 15a609d5d6613e37e819975ceba01cb5ba735242 (patch) | |
tree | 1de23ad8c8d5885700164185f0d0d92f7ae95199 /cmd/wnode | |
parent | 72dcd3c58bec0a281280d5d42ed53b6e429ce4af (diff) | |
download | go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar.gz go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar.zst go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.zip |
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
Diffstat (limited to 'cmd/wnode')
-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() |