From 48cc36ce83efeb08c1de01c943d4e522f9c3b7ff Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Thu, 28 Apr 2016 12:33:42 +0200 Subject: [PATCH] eth/filters: ignore logs that don't match filter criteria on chain reorg --- eth/filters/filter_system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index 29968530a..4343dfa21 100644 --- a/eth/filters/filter_system.go +++ b/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) } }