aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2015-09-01 15:19:45 +0800
committerMaran <maran.hidskes@gmail.com>2015-09-01 15:19:45 +0800
commit67225de2551943a5e53e6c595fcf2c4049e4606d (patch)
tree781821d12b5224ef0097a1933b1d647ae7d62290 /core
parente1037bd0cfd6a19ef8612672ba192a8923e88d96 (diff)
downloaddexon-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.gz
dexon-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.zst
dexon-67225de2551943a5e53e6c595fcf2c4049e4606d.zip
Filter on addresses should work as an OR not an AND.
Diffstat (limited to 'core')
-rw-r--r--core/filter.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/filter.go b/core/filter.go
index c34d6ff6c..b328ffff3 100644
--- a/core/filter.go
+++ b/core/filter.go
@@ -131,12 +131,12 @@ done:
func includes(addresses []common.Address, a common.Address) bool {
for _, addr := range addresses {
- if addr != a {
- return false
+ if addr == a {
+ return true
}
}
- return true
+ return false
}
func (self *Filter) FilterLogs(logs state.Logs) state.Logs {