Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
  • Loading branch information
gfukushima committed Sep 27, 2024
1 parent d7e5e36 commit c8e332a
Showing 1 changed file with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,24 @@ public int getFinalizedState(
}

@Command(
name = "get-earliest-available-block-slot",
description = "Get the finalized state, if available, as SSZ",
mixinStandardHelpOptions = true,
showDefaultValues = true,
abbreviateSynopsis = true,
versionProvider = PicoCliVersionProvider.class,
synopsisHeading = "%n",
descriptionHeading = "%nDescription:%n%n",
optionListHeading = "%nOptions:%n",
footerHeading = "%n",
footer = "Teku is licensed under the Apache License 2.0")
name = "get-earliest-available-block-slot",
description = "Get the finalized state, if available, as SSZ",
mixinStandardHelpOptions = true,
showDefaultValues = true,
abbreviateSynopsis = true,
versionProvider = PicoCliVersionProvider.class,
synopsisHeading = "%n",
descriptionHeading = "%nDescription:%n%n",
optionListHeading = "%nOptions:%n",
footerHeading = "%n",
footer = "Teku is licensed under the Apache License 2.0")
public int getEarliestAvailableBlockSlot(
@Mixin final BeaconNodeDataOptions beaconNodeDataOptions,
@Mixin final Eth2NetworkOptions eth2NetworkOptions)
throws Exception {
@Mixin final BeaconNodeDataOptions beaconNodeDataOptions,
@Mixin final Eth2NetworkOptions eth2NetworkOptions)
throws Exception {
try (final Database database = createDatabase(beaconNodeDataOptions, eth2NetworkOptions)) {
Optional<UInt64> earliestAvailableBlockSlot = database.getEarliestAvailableBlockSlot();
earliestAvailableBlockSlot.ifPresent(System.out::println);
earliestAvailableBlockSlot.ifPresent(System.out::println);
}
return 0;
}
Expand Down Expand Up @@ -891,5 +891,4 @@ private int writeBlock(final Path outputFile, final Optional<SignedBeaconBlock>
}
return 0;
}

}

0 comments on commit c8e332a

Please sign in to comment.