Fixed whisper "to" filtering. Closes #283

This commit is contained in:
obscuren
2015-02-03 07:16:05 -08:00
parent 623469cb6c
commit 7bd2fbe2b1
4 changed files with 16 additions and 4 deletions

View File

@ -269,7 +269,7 @@ func (self *Whisper) Protocol() p2p.Protocol {
func createFilter(message *Message, topics [][]byte, key *ecdsa.PrivateKey) filter.Filter {
return filter.Generic{
Str1: string(crypto.FromECDSA(key)), Str2: string(crypto.FromECDSAPub(message.Recover())),
Str1: string(crypto.FromECDSAPub(&key.PublicKey)), Str2: string(crypto.FromECDSAPub(message.Recover())),
Data: bytesToMap(topics),
}
}