Skip to content

Commit 77c305f

Browse files
committed
tweak fix on recent blocks view
1 parent 276f8b4 commit 77c305f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/sparrowwallet/sparrow/control/RecentBlocksView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public void update(List<BlockSummary> latestBlocks, Double currentFeeRate) {
8989
if(latestTip > knownTip) {
9090
addNewBlock(latestBlocks, currentFeeRate);
9191
} else {
92-
for(int i = 1; i < getCubes().size() && i < latestBlocks.size(); i++) {
92+
for(int i = 1; i < getCubes().size() && i <= latestBlocks.size(); i++) {
9393
BlockCube blockCube = getCubes().get(i);
94-
BlockSummary latestBlock = latestBlocks.get(i-1);
94+
BlockSummary latestBlock = latestBlocks.get(i - 1);
9595
blockCube.setConfirmed(true);
9696
blockCube.setHeight(latestBlock.getHeight());
9797
blockCube.setTimestamp(latestBlock.getTimestamp().getTime());

0 commit comments

Comments
 (0)