Skip to content

Commit

Permalink
fix rendering of unfinalized blocks on filtered slots page
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Sep 11, 2024
1 parent 377d32f commit 754b3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/chainservice_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]
Expand Down

0 comments on commit 754b3fe

Please sign in to comment.