mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 13:59:26 +00:00
eth/filters: rangeLogs should error on invalid block range
This commit is contained in:
parent
7b7be249cb
commit
ee5249a532
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ func (f *Filter) rangeLogs(ctx context.Context, firstBlock, lastBlock uint64) ([
|
||||||
}
|
}
|
||||||
|
|
||||||
if firstBlock > lastBlock {
|
if firstBlock > lastBlock {
|
||||||
return nil, nil
|
return nil, errInvalidBlockRange
|
||||||
}
|
}
|
||||||
mb := f.sys.backend.NewMatcherBackend()
|
mb := f.sys.backend.NewMatcherBackend()
|
||||||
defer mb.Close()
|
defer mb.Close()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue