public void setIgnorableStorageSegments() {
    if (!unstableChainPruningOptions.getChainDataPruningEnabled()
        && !dataStorageConfiguration.getHistoryExpiryPruneEnabled()) {
      rocksDBPlugin.addIgnorableSegmentIdentifier(KeyValueSegmentIdentifier.CHAIN_PRUNER_STATE);
    }
  }
Set ignorable segments in RocksDB Storage Provider plugin.
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java