From 754b3fe828a71a7ba3e196c8fcaf8c3acfbdb25d Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 11 Sep 2024 16:32:36 +0200 Subject: [PATCH] fix rendering of unfinalized blocks on filtered slots page --- services/chainservice_blocks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/chainservice_blocks.go b/services/chainservice_blocks.go index 76a73c18..7bcfe26f 100644 --- a/services/chainservice_blocks.go +++ b/services/chainservice_blocks.go @@ -659,7 +659,7 @@ func (bs *ChainService) GetDbBlocksByFilter(filter *dbtypes.BlockFilter, pageIdx blockRootsIdx := make([]int, 0) blockRootsCachedId := make([]uint64, 0) - if cachedPages > 0 && pageIdx <= cachedPages { + if pageIdx <= cachedPages { var cachedMatchesRange []cachedDbBlock if pageIdx == cachedPages { cachedMatchesRange = cachedMatches[cachedStart:]