aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv6/peer_test.go
diff options
context:
space:
mode:
authorGuillaume Ballet <gballet@gmail.com>2018-02-10 21:35:32 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-02-10 21:35:32 +0800
commit5cf75a30c1ceb0ab35cd6b0532520d556996b21c (patch)
tree9a5d6f0fdf27967f38aed2dd5cc651106c00eaa2 /whisper/whisperv6/peer_test.go
parent2f849ade8204a4b417202d90c66e2f5bef4e965d (diff)
downloadgo-tangerine-5cf75a30c1ceb0ab35cd6b0532520d556996b21c.tar.gz
go-tangerine-5cf75a30c1ceb0ab35cd6b0532520d556996b21c.tar.zst
go-tangerine-5cf75a30c1ceb0ab35cd6b0532520d556996b21c.zip
whisper: get wnode to work with v6 (#16051)
The bulk of the issue was to adapt to the new requirement that a v6 filter has to either contain a symmertric key or an asymmetric one. This commits revert one of the fixes that I made to remove a linter warning: unexporting NewSentMessage. This is not really a problem as I have a cleanup in the pipe that will solve this issue.
Diffstat (limited to 'whisper/whisperv6/peer_test.go')
-rw-r--r--whisper/whisperv6/peer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/whisper/whisperv6/peer_test.go b/whisper/whisperv6/peer_test.go
index dffa7b350..188c8f746 100644
--- a/whisper/whisperv6/peer_test.go
+++ b/whisper/whisperv6/peer_test.go
@@ -344,7 +344,7 @@ func sendMsg(t *testing.T, expected bool, id int) {
opt.Payload = opt.Payload[1:]
}
- msg, err := newSentMessage(&opt)
+ msg, err := NewSentMessage(&opt)
if err != nil {
t.Fatalf("failed to create new message with seed %d: %s.", seed, err)
}
@@ -368,7 +368,7 @@ func TestPeerBasic(t *testing.T) {
}
params.PoW = 0.001
- msg, err := newSentMessage(params)
+ msg, err := NewSentMessage(params)
if err != nil {
t.Fatalf("failed to create new message with seed %d: %s.", seed, err)
}