diff --git a/api/coreservice.go b/api/coreservice.go index 41ec832124..e0236b3af8 100644 --- a/api/coreservice.go +++ b/api/coreservice.go @@ -1401,12 +1401,6 @@ func (core *coreService) LogsInRange(filter *logfilter.LogFilter, start, end, pa if err != nil { return nil, nil, err } - if paginationSize == 0 { - paginationSize = 1000 - } - if paginationSize > 5000 { - paginationSize = 5000 - } // getLogs via range Blooom filter [start, end] blockNumbers, err := core.bfIndexer.FilterBlocksInRange(filter, start, end, paginationSize) if err != nil {