forked from cerc-io/plugeth
Filter on addresses should work as an OR not an AND.
This commit is contained in:
parent
e1037bd0cf
commit
67225de255
@ -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 New Issue
Block a user