aboutsummaryrefslogtreecommitdiffstats
path: root/event
diff options
context:
space:
mode:
Diffstat (limited to 'event')
-rw-r--r--event/filter/eth_filter.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/event/filter/eth_filter.go b/event/filter/eth_filter.go
index 4406372db..1abd48389 100644
--- a/event/filter/eth_filter.go
+++ b/event/filter/eth_filter.go
@@ -64,8 +64,9 @@ func (self *FilterManager) GetFilter(id int) *core.Filter {
func (self *FilterManager) filterLoop() {
// Subscribe to events
events := self.eventMux.Subscribe(
- core.PendingBlockEvent{},
+ //core.PendingBlockEvent{},
core.ChainEvent{},
+ core.TxPreEvent{},
state.Logs(nil))
out:
@@ -84,11 +85,11 @@ out:
}
self.filterMu.RUnlock()
- case core.PendingBlockEvent:
+ case core.TxPreEvent:
self.filterMu.RLock()
for _, filter := range self.filters {
if filter.PendingCallback != nil {
- filter.PendingCallback(event.Block, event.Logs)
+ filter.PendingCallback(event.Tx)
}
}
self.filterMu.RUnlock()