@Override
  public List<String> getCLIOptions() {
    return Arrays.asList(
        CHAIN_PRUNING_ENABLED_FLAG,
        chainDataPruningEnabled.toString(),
        CHAIN_PRUNING_BLOCKS_RETAINED_FLAG,
        chainDataPruningBlocksRetained.toString(),
        CHAIN_PRUNING_BLOCKS_RETAINED_LIMIT_FLAG,
        chainDataPruningBlocksRetainedLimit.toString(),
        CHAIN_PRUNING_FREQUENCY_FLAG,
        chainDataPruningBlocksFrequency.toString(),
        PRE_MERGE_PRUNING_QUANTITY_FLAG,
        preMergePruningBlocksQuantity.toString());
  }
Get the configured number of retained blocks for chain pruning.

@return the number of retained blocks
app/src/main/java/org/hyperledger/besu/cli/options/ChainPruningOptions.java