From b79872ddffa44c699081932c469483524184a176 Mon Sep 17 00:00:00 2001 From: envestcc Date: Wed, 17 Jul 2024 16:27:22 +0800 Subject: [PATCH] fix --- api/coreservice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/coreservice.go b/api/coreservice.go index e0236b3af8..ee93191af8 100644 --- a/api/coreservice.go +++ b/api/coreservice.go @@ -1455,7 +1455,7 @@ func (core *coreService) LogsInRange(filter *logfilter.LogFilter, start, end, pa for j := range logsInBlk[i] { logs = append(logs, logsInBlk[i][j]) hashes = append(hashes, HashInBlk[i]) - if len(logs) >= int(paginationSize) { + if paginationSize > 0 && len(logs) >= int(paginationSize) { return logs, hashes, nil } }