@Override
  public ChainPrunerConfiguration toDomainObject() {
    return new ChainPrunerConfiguration(
        chainDataPruningEnabled,
        chainDataPruningBlocksRetained,
        chainDataPruningBlocksRetainedLimit,
        chainDataPruningBlocksFrequency.getValue(),
        preMergePruningBlocksQuantity.getValue());
  }
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