Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Jul 17, 2024
1 parent cd51767 commit b79872d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/coreservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit b79872d

Please sign in to comment.