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.
This commit is contained in:
committed by
Péter Szilágyi
parent
2f849ade82
commit
5cf75a30c1
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user