aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorEthan Buchman <ethan@coinculture.info>2015-02-27 06:54:57 +0800
committerEthan Buchman <ethan@coinculture.info>2015-02-27 06:54:57 +0800
commit5a827417d9cef0d2a765df11e747b1755bf04898 (patch)
treecd3764686dcb59f5b1b9faf16c9f29dcc5efd593 /whisper
parent9446489cf3f2eb4b5237b9355b3975fde2886508 (diff)
parentcc5c8a444dbc23501ba1a131eb2334f4b5e1ce9f (diff)
downloaddexon-5a827417d9cef0d2a765df11e747b1755bf04898.tar
dexon-5a827417d9cef0d2a765df11e747b1755bf04898.tar.gz
dexon-5a827417d9cef0d2a765df11e747b1755bf04898.tar.bz2
dexon-5a827417d9cef0d2a765df11e747b1755bf04898.tar.lz
dexon-5a827417d9cef0d2a765df11e747b1755bf04898.tar.xz
dexon-5a827417d9cef0d2a765df11e747b1755bf04898.tar.zst
dexon-5a827417d9cef0d2a765df11e747b1755bf04898.zip
Merge branch 'develop' of https://github.com/ethereum/go-ethereum into develop
Diffstat (limited to 'whisper')
-rw-r--r--whisper/whisper.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/whisper/whisper.go b/whisper/whisper.go
index 50c2f98fd..13209f9a6 100644
--- a/whisper/whisper.go
+++ b/whisper/whisper.go
@@ -127,6 +127,10 @@ func (self *Whisper) Watch(opts Filter) int {
})
}
+func (self *Whisper) Unwatch(id int) {
+ self.filters.Uninstall(id)
+}
+
func (self *Whisper) Messages(id int) (messages []*Message) {
filter := self.filters.Get(id)
if filter != nil {