Skip to content

Commit 5d2138a

Browse files
committed
core: fixed issue for logs filter. Closes bnb-chain#629
Log filter `Address` field was cast to a Hash which causes it to always fail.
1 parent ccb4722 commit 5d2138a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/filter.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (self *Filter) bloomFilter(block *types.Block) bool {
153153
if len(self.address) > 0 {
154154
var included bool
155155
for _, addr := range self.address {
156-
if types.BloomLookup(block.Bloom(), addr.Hash()) {
156+
if types.BloomLookup(block.Bloom(), addr) {
157157
included = true
158158
break
159159
}

0 commit comments

Comments
 (0)