diff options
author | Felix Lange <fjl@twurst.com> | 2015-09-02 02:10:27 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-09-02 02:10:27 +0800 |
commit | 1ffc5b0cfdf09b7faf07d2f1bc4d76eab7785a92 (patch) | |
tree | baed0d552e500a0eddcca08a5e7efebf67e1cda3 | |
parent | 5e4cd599eb1dd9481a41b342f603f158ed3b3640 (diff) | |
parent | 67225de2551943a5e53e6c595fcf2c4049e4606d (diff) | |
download | dexon-1ffc5b0cfdf09b7faf07d2f1bc4d76eab7785a92.tar.gz dexon-1ffc5b0cfdf09b7faf07d2f1bc4d76eab7785a92.tar.zst dexon-1ffc5b0cfdf09b7faf07d2f1bc4d76eab7785a92.zip |
Merge pull request #1751 from maran/fix_filters
core: Filter on addresses should work as an OR not an AND.
-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 { |