mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
whisper: fix mailserver unit tests
This commit is contained in:
parent
41ac598330
commit
c2499c7dad
1 changed files with 3 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
package mailserver
|
package mailserver
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
|
@ -107,9 +108,9 @@ func (s *WMailServer) DeliverMail(peer whisper.Peer, request *whisper.Envelope)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ok, lower, upper, bloom := s.validateRequest(peer.ID(), request)
|
ok, lower, upper, bloom := s.validateRequest([]byte(peer.ID()), request)
|
||||||
if ok {
|
if ok {
|
||||||
s.processRequest(peer, lower, upper, bloom)
|
s.processRequest(peer, lower, upper, topic)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue