mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-30 13:22:54 +00:00
Merge pull request #1751 from maran/fix_filters
core: Filter on addresses should work as an OR not an AND.
This commit is contained in:
commit
1ffc5b0cfd
1 changed files with 3 additions and 3 deletions
|
|
@ -131,12 +131,12 @@ done:
|
||||||
|
|
||||||
func includes(addresses []common.Address, a common.Address) bool {
|
func includes(addresses []common.Address, a common.Address) bool {
|
||||||
for _, addr := range addresses {
|
for _, addr := range addresses {
|
||||||
if addr != a {
|
if addr == a {
|
||||||
return false
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *Filter) FilterLogs(logs state.Logs) state.Logs {
|
func (self *Filter) FilterLogs(logs state.Logs) state.Logs {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue