good morning!!!!

Skip to content
Snippets Groups Projects
Commit 66d55598 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Fixed chain event issue

parent 82cae277
No related branches found
No related tags found
No related merge requests found
...@@ -396,9 +396,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { ...@@ -396,9 +396,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
self.mu.Unlock() self.mu.Unlock()
if chain { if chain {
fmt.Println("POST START") go self.eventMux.Post(ChainEvent{block, td})
self.eventMux.Post(ChainEvent{block, td})
fmt.Println("POST END")
} }
if split { if split {
......
...@@ -101,13 +101,11 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro ...@@ -101,13 +101,11 @@ func (self *EthereumApi) NewFilter(args *FilterOptions, reply *interface{}) erro
self.logMut.Lock() self.logMut.Lock()
defer self.logMut.Unlock() defer self.logMut.Unlock()
if self.logs[id] == nil {
self.logs[id] = &logFilter{timeout: time.Now()}
}
self.logs[id].add(logs...) self.logs[id].add(logs...)
} }
id = self.filterManager.InstallFilter(filter) id = self.filterManager.InstallFilter(filter)
self.logs[id] = &logFilter{timeout: time.Now()}
*reply = id *reply = id
return nil return nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment