diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-04-28 18:59:07 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-04-28 18:59:07 +0800 |
commit | 1b77d5090d88be2895e2c6dce6ad3ccc344a4be6 (patch) | |
tree | 4cf63047d7b4b39400f67179b9dac15aaddc3048 | |
parent | e62c2aeb1bb25d2f6ac6e7413321200ef19ea727 (diff) | |
parent | 48cc36ce83efeb08c1de01c943d4e522f9c3b7ff (diff) | |
download | go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.tar go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.tar.gz go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.tar.bz2 go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.tar.lz go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.tar.xz go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.tar.zst go-tangerine-1b77d5090d88be2895e2c6dce6ad3ccc344a4be6.zip |
Merge pull request #2499 from bas-vk/reorg-logs
eth/filters: ignore logs that don't match filter criteria on chain reorg
-rw-r--r-- | eth/filters/filter_system.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |