Skip to content

Commit

Permalink
eth/filters: make filterLogs func more readable (ethereum#16920)
Browse files Browse the repository at this point in the history
  • Loading branch information
knarfeh authored and kielbarry committed Jul 9, 2018
1 parent 69ed3cb commit 3568d75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eth/filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ Logs:
if len(topics) > len(log.Topics) {
continue Logs
}
for i, topics := range topics {
match := len(topics) == 0 // empty rule set == wildcard
for _, topic := range topics {
for i, sub := range topics {
match := len(sub) == 0 // empty rule set == wildcard
for _, topic := range sub {
if log.Topics[i] == topic {
match = true
break
Expand Down

0 comments on commit 3568d75

Please sign in to comment.