UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

12 lines 569 B
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