eth/filters: make filterLogs func more readable (#16920)

This commit is contained in:
knarfeh 2018-06-14 17:27:02 +08:00 committed by Péter Szilágyi
parent 947e0afeb3
commit e75d0a6e4c
1 changed files with 3 additions and 3 deletions

View File

@ -258,9 +258,9 @@ Logs:
if len(topics) > len(log.Topics) { if len(topics) > len(log.Topics) {
continue Logs continue Logs
} }
for i, topics := range topics { for i, sub := range topics {
match := len(topics) == 0 // empty rule set == wildcard match := len(sub) == 0 // empty rule set == wildcard
for _, topic := range topics { for _, topic := range sub {
if log.Topics[i] == topic { if log.Topics[i] == topic {
match = true match = true
break break