浏览代码

core: fixed issue for logs filter. Closes #629

Log filter `Address` field was cast to a Hash which causes it to always
fail.
obscuren 10 年之前
父节点
当前提交
5d2138a2b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/filter.go

+ 1 - 1
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
 			}