diff options
author | Maran <maran.hidskes@gmail.com> | 2015-09-01 15:19:45 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2015-09-01 15:19:45 +0800 |
commit | 67225de2551943a5e53e6c595fcf2c4049e4606d (patch) | |
tree | 781821d12b5224ef0097a1933b1d647ae7d62290 /core/filter.go | |
parent | e1037bd0cfd6a19ef8612672ba192a8923e88d96 (diff) | |
download | go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.tar go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.gz go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.bz2 go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.lz go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.xz go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.tar.zst go-tangerine-67225de2551943a5e53e6c595fcf2c4049e4606d.zip |
Filter on addresses should work as an OR not an AND.
Diffstat (limited to 'core/filter.go')
-rw-r--r-- | core/filter.go | 6 |
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 { |