aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-20 23:59:08 +0800
committerobscuren <geffobscura@gmail.com>2015-02-20 23:59:08 +0800
commit66d5559866f37a79a7b5aeccd03dfe1b4401542b (patch)
tree0d18a39d40dd1b88ce770e803b00b0d117ceaa00 /rpc
parent82cae277372095eb221bc14b2111e46c468925fd (diff)
downloadgo-tangerine-66d5559866f37a79a7b5aeccd03dfe1b4401542b.tar.gz
go-tangerine-66d5559866f37a79a7b5aeccd03dfe1b4401542b.tar.zst
go-tangerine-66d5559866f37a79a7b5aeccd03dfe1b4401542b.zip
Fixed chain event issue
Diffstat (limited to 'rpc')
-rw-r--r--rpc/packages.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/rpc/packages.go b/rpc/packages.go
index 56c1751d7..72e090130 100644
--- a/rpc/packages.go
+++ b/rpc/packages.go
@@ -101,13 +101,11 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro
self.logMut.Lock()
defer self.logMut.Unlock()
- if self.logs[id] == nil {
- self.logs[id] = &logFilter{timeout: time.Now()}
- }
-
self.logs[id].add(logs...)
}
id = self.filterManager.InstallFilter(filter)
+ self.logs[id] = &logFilter{timeout: time.Now()}
+
*reply = id
return nil