aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-03 23:16:05 +0800
committerobscuren <geffobscura@gmail.com>2015-02-03 23:16:05 +0800
commit7bd2fbe2b1445c26190008d21ad52dc5c364765c (patch)
tree88553917d6be4a51f4a9dd87f35ce31782319ee1 /whisper/whisper.go
parent623469cb6c6cdb6ff84dc2cb7d4409e9d7cf3f65 (diff)
downloadgo-tangerine-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.gz
go-tangerine-7bd2fbe2b1445c26190008d21ad52dc5c364765c.tar.zst
go-tangerine-7bd2fbe2b1445c26190008d21ad52dc5c364765c.zip
Fixed whisper "to" filtering. Closes #283
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r--whisper/whisper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index 8eab0825b..cc0348422 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -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),
}
}