eth/filter : reused the error msg for invalid block range

This commit is contained in:
ucwong 2023-11-08 02:53:57 +08:00
parent 4d9f3cd5d7
commit 1e36e2502f

View file

@ -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