From 67225de2551943a5e53e6c595fcf2c4049e4606d Mon Sep 17 00:00:00 2001
From: Maran <maran.hidskes@gmail.com>
Date: Tue, 1 Sep 2015 09:19:45 +0200
Subject: [PATCH] Filter on addresses should work as an OR not an AND.

---
 core/filter.go | 6 +++---
 1 file 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 {
-- 
GitLab