aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisper.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-09 04:41:32 +0800
committerobscuren <geffobscura@gmail.com>2015-01-09 04:41:32 +0800
commit4a0ade4788b0e8d53c6b0eabaf9652643b6a073a (patch)
tree57a477ec1419547130ca75638fb2df71f883b4f4 /whisper/whisper.go
parent5f958a582d1326ada1cb34b4c6578590a7c40e6c (diff)
downloadgo-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.tar
go-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.tar.gz
go-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.tar.bz2
go-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.tar.lz
go-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.tar.xz
go-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.tar.zst
go-tangerine-4a0ade4788b0e8d53c6b0eabaf9652643b6a073a.zip
Fixed some whisper issues
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 ffcdd7d40..3ff4bac5a 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -229,11 +229,11 @@ func (self *Whisper) envelopes() (envelopes []*Envelope) {
func (self *Whisper) postEvent(envelope *Envelope) {
for _, key := range self.keys {
if message, err := envelope.Open(key); err == nil || (err != nil && err == ecies.ErrInvalidPublicKey) {
- // Create a custom filter?
self.filters.Notify(filter.Generic{
Str1: string(crypto.FromECDSA(key)), Str2: string(crypto.FromECDSAPub(message.Recover())),
Data: bytesToMap(envelope.Topics),
}, message)
+ break
} else {
wlogger.Infoln(err)
}