UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

30 lines 1.08 kB
import { ChainForkConfig } from "@lodestar/config"; import { IForkChoice, ProtoBlock } from "@lodestar/fork-choice"; import { RootHex, Slot } from "@lodestar/types"; import { IClock } from "../../util/clock.js"; import { IChainOptions } from "../options.js"; import { BlockInput, ImportBlockOpts } from "./types.js"; /** * Verifies some early cheap sanity checks on the block before running the full state transition. * * - Parent is known to the fork-choice * - Check skipped slots limit * - check_block_relevancy() * - Block not in the future * - Not genesis block * - Block's slot is < Infinity * - Not finalized slot * - Not already known */ export declare function verifyBlocksSanityChecks(chain: { forkChoice: IForkChoice; clock: IClock; config: ChainForkConfig; opts: IChainOptions; blacklistedBlocks: Map<RootHex, Slot | null>; }, blocks: BlockInput[], opts: ImportBlockOpts): { relevantBlocks: BlockInput[]; parentSlots: Slot[]; parentBlock: ProtoBlock | null; }; //# sourceMappingURL=verifyBlocksSanityChecks.d.ts.map