aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/wnode
diff options
context:
space:
mode:
authorgluk256 <gluk256@users.noreply.github.com>2017-02-14 22:44:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-14 22:44:47 +0800
commit15a609d5d6613e37e819975ceba01cb5ba735242 (patch)
tree1de23ad8c8d5885700164185f0d0d92f7ae95199 /cmd/wnode
parent72dcd3c58bec0a281280d5d42ed53b6e429ce4af (diff)
downloadgo-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar
go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar.gz
go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar.bz2
go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar.lz
go-tangerine-15a609d5d6613e37e819975ceba01cb5ba735242.tar.xz
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.go5
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()