Skip to content

Commit

Permalink
eth/filters: ignore logs that don't match filter criteria on chain reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-vk committed Apr 28, 2016
1 parent 123aa65 commit 48cc36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/filters/filter_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 48cc36c

Please sign in to comment.