private SyncMode getDefaultSyncModeIfNotSet() {
    return Optional.ofNullable(syncMode)
        .orElse(
            genesisFile == null
                    && Optional.ofNullable(network).map(NetworkName::canSnapSync).orElse(false)
                ? SyncMode.SNAP
                : SyncMode.FULL);
  }
Set ignorable segments in RocksDB Storage Provider plugin.
app/src/main/java/org/hyperledger/besu/cli/BesuCommand.java