fix: broken mipmap bloom

This commit is contained in:
cola tin 2017-05-20 21:22:07 +08:00
parent 33b158e0ed
commit 72c8473ffb

View file

@ -141,7 +141,7 @@ func (f *Filter) mipFind(start, end uint64, depth int) (logs []*types.Log, block
// up where a previous run left off.
first := true
for _, addr := range f.addresses {
if first || bloom.TestBytes(addr[:]) {
if first && bloom.TestBytes(addr[:]) {
first = false
// range check normalised values and make sure that
// we're resolving the correct range instead of the