Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fukushima <[email protected]>
  • Loading branch information
gfukushima committed Oct 17, 2024
1 parent 00db207 commit ca03731
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,8 @@ public void pruneFinalizedBlocks_UpdatesEarliestAvailableBlockSlotWhenLimited(
}

@TestTemplate
public void pruneFinalizedBlocks_ClearEarliestAvailableBlockSlotVariableWhenNoBlocksLeftAfterPrune(
public void
pruneFinalizedBlocks_ClearEarliestAvailableBlockSlotVariableWhenNoBlocksLeftAfterPrune(
final DatabaseContext context) throws Exception {
initialize(context, StateStorageMode.ARCHIVE);
final List<SignedBlockAndState> blockAndStates = chainBuilder.generateBlocksUpToSlot(5);
Expand All @@ -2292,10 +2293,10 @@ public void pruneFinalizedBlocks_ClearEarliestAvailableBlockSlotVariableWhenNoBl
final SignedBlockAndState finalizedBlock = chainBuilder.generateBlockAtSlot(7);
addBlocks(finalizedBlock);
justifyAndFinalizeEpoch(
spec.computeEpochAtSlot(finalizedBlock.getSlot()).plus(1), finalizedBlock);
spec.computeEpochAtSlot(finalizedBlock.getSlot()).plus(1), finalizedBlock);

final UInt64 lastPrunedSlot1 =
database.pruneFinalizedBlocks(UInt64.valueOf(7), 10, UInt64.valueOf(10));
database.pruneFinalizedBlocks(UInt64.valueOf(7), 10, UInt64.valueOf(10));
assertThat(lastPrunedSlot1).isEqualTo(UInt64.valueOf(7));
assertThat(database.getEarliestAvailableBlockSlot()).isEqualTo(Optional.empty());
}
Expand Down

0 comments on commit ca03731

Please sign in to comment.