aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/mailserver
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 /whisper/mailserver
parent72dcd3c58bec0a281280d5d42ed53b6e429ce4af (diff)
downloaddexon-15a609d5d6613e37e819975ceba01cb5ba735242.tar.gz
dexon-15a609d5d6613e37e819975ceba01cb5ba735242.tar.zst
dexon-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 'whisper/mailserver')
-rw-r--r--whisper/mailserver/server_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go
index 24abf6c1a..02b30ff5e 100644
--- a/whisper/mailserver/server_test.go
+++ b/whisper/mailserver/server_test.go
@@ -84,7 +84,9 @@ func TestMailServer(t *testing.T) {
}
var server WMailServer
- shh = whisper.NewWhisper(&server)
+ shh = whisper.New()
+ shh.RegisterServer(&server)
+
server.Init(shh, dbPath, password, powRequirement)
defer server.Close()