eth/filters: rangeLogs should error on invalid block range

This commit is contained in:
Vicky 2026-02-05 18:01:17 +08:00
parent 7b7be249cb
commit ee5249a532

View file

@ -390,7 +390,7 @@ func (f *Filter) rangeLogs(ctx context.Context, firstBlock, lastBlock uint64) ([
}
if firstBlock > lastBlock {
return nil, nil
return nil, errInvalidBlockRange
}
mb := f.sys.backend.NewMatcherBackend()
defer mb.Close()