eth/filters: ignore logs that don't match filter criteria on chain reorg

pull/2499/head
Bas van Kervel 9 years ago
parent 123aa659e4
commit 48cc36ce83
  1. 2
      eth/filters/filter_system.go

@ -164,7 +164,7 @@ func (fs *FilterSystem) filterLoop() {
fs.filterMu.RLock()
for _, filter := range fs.logFilters {
if filter.LogCallback != nil && !filter.created.After(event.Time) {
for _, removedLog := range ev.Logs {
for _, removedLog := range filter.FilterLogs(ev.Logs) {
filter.LogCallback(removedLog, true)
}
}

Loading…
Cancel
Save