aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-15 17:59:30 +0800
committerobscuren <geffobscura@gmail.com>2015-04-15 17:59:41 +0800
commit5d2138a2b23ff410767fa7d26d4ab5777db6fcde (patch)
treeda1122641f0a1429ab6cbb2b62b0f6d613847328
parentccb4722a593aff7be5a2a5998534faf58a277139 (diff)
downloaddexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.tar
dexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.tar.gz
dexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.tar.bz2
dexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.tar.lz
dexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.tar.xz
dexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.tar.zst
dexon-5d2138a2b23ff410767fa7d26d4ab5777db6fcde.zip
core: fixed issue for logs filter. Closes #629
Log filter `Address` field was cast to a Hash which causes it to always fail.
-rw-r--r--core/filter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/filter.go b/core/filter.go
index dd15db27d..4508b35b3 100644
--- a/core/filter.go
+++ b/core/filter.go
@@ -153,7 +153,7 @@ func (self *Filter) bloomFilter(block *types.Block) bool {
if len(self.address) > 0 {
var included bool
for _, addr := range self.address {
- if types.BloomLookup(block.Bloom(), addr.Hash()) {
+ if types.BloomLookup(block.Bloom(), addr) {
included = true
break
}