mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/filter : reused the error msg for invalid block range
This commit is contained in:
parent
4d9f3cd5d7
commit
1e36e2502f
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) {
|
|||
|
||||
// special case for pending logs
|
||||
if beginPending && !endPending {
|
||||
return nil, errors.New("invalid block range")
|
||||
return nil, errInvalidBlockRange
|
||||
}
|
||||
|
||||
// Short-cut if all we care about is pending logs
|
||||
|
|
|
|||
Loading…
Reference in a new issue