UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

20 lines 993 B
import { CheckpointWithHex } from "@lodestar/fork-choice"; import { Logger } from "@lodestar/logger"; import { IBeaconDb } from "../../../db/interface.js"; import { IBeaconChain } from "../../interface.js"; /** * Backfill sync relies on verified connected ranges (which are represented as key,value * with a verified jump from a key back to value). Since the node could have progressed * ahead from, we need to save the forward progress of this node as another backfill * range entry, that backfill sync will use to jump back if this node is restarted * for any reason. * The current backfill has its own backfill entry from anchor slot to last backfilled * slot. And this would create the entry from the current finalized slot to the anchor * slot. */ export declare function updateBackfillRange({ chain, db, logger }: { chain: IBeaconChain; db: IBeaconDb; logger: Logger; }, finalized: CheckpointWithHex): Promise<void>; //# sourceMappingURL=updateBackfillRange.d.ts.map