import { isForkPostDeneb, isForkPostFulu } from "@lodestar/params";
import { computeEpochAtSlot } from "@lodestar/state-transition";
export function isDaOutOfRange(config, forkName, blockSlot, currentEpoch) {
    if (isForkPostFulu(forkName)) {
        return computeEpochAtSlot(blockSlot) < currentEpoch - config.MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS;
    }
    if (isForkPostDeneb(forkName)) {
        return computeEpochAtSlot(blockSlot) < currentEpoch - config.MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS;
    }
    return true;
}
//# sourceMappingURL=utils.js.map