UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

15 lines 816 B
import { BeaconChain } from "../chain.js"; import { BlockInput } from "./types.js"; /** * Persists block input data to DB. This operation must be eventually completed if a block is imported to the fork-choice. * Else the node will be in an inconsistent state that can lead to being stuck. * * This operation may be performed before, during or after importing to the fork-choice. As long as errors * are handled properly for eventual consistency. */ export declare function writeBlockInputToDb(this: BeaconChain, blocksInput: BlockInput[]): Promise<void>; /** * Prunes eagerly persisted block inputs only if not known to the fork-choice */ export declare function removeEagerlyPersistedBlockInputs(this: BeaconChain, blockInputs: BlockInput[]): Promise<void>; //# sourceMappingURL=writeBlockInputToDb.d.ts.map