From ee5249a5326bb5168f9c42a29a5f01a6e5d1a565 Mon Sep 17 00:00:00 2001 From: Vicky Date: Thu, 5 Feb 2026 18:01:17 +0800 Subject: [PATCH] eth/filters: rangeLogs should error on invalid block range --- eth/filters/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 9915f28128..04e11f0475 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -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()