aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorknarfeh <hejun1874@gmail.com>2018-06-14 17:27:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-06-14 17:27:02 +0800
commite75d0a6e4ce132965aaa2fb1f8404fdbe101aa72 (patch)
treeb0c12135f5a622f41bcad9b0187a9745adb9e774 /eth
parent947e0afeb3bce9c52548979daddd1e00aa0d7ba8 (diff)
downloadgo-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.tar
go-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.tar.gz
go-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.tar.bz2
go-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.tar.lz
go-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.tar.xz
go-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.tar.zst
go-tangerine-e75d0a6e4ce132965aaa2fb1f8404fdbe101aa72.zip
eth/filters: make filterLogs func more readable (#16920)
Diffstat (limited to 'eth')
-rw-r--r--eth/filters/filter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/filters/filter.go b/eth/filters/filter.go
index 67b4612ae..7000d74fa 100644
--- a/eth/filters/filter.go
+++ b/eth/filters/filter.go
@@ -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