diff --git a/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java b/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java index 8c449a137f5..10b6f9130c6 100644 --- a/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java +++ b/teku/src/main/java/tech/pegasys/teku/cli/subcommand/debug/DebugDbCommand.java @@ -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 earliestAvailableBlockSlot = database.getEarliestAvailableBlockSlot(); - earliestAvailableBlockSlot.ifPresent(System.out::println); + earliestAvailableBlockSlot.ifPresent(System.out::println); } return 0; } @@ -891,5 +891,4 @@ private int writeBlock(final Path outputFile, final Optional } return 0; } - }