UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

13 lines 704 B
import { BeaconConfig } from "@lodestar/config"; import { IBeaconStateView } from "@lodestar/state-transition"; import { IBeaconDb } from "../../../db/index.js"; import { HistoricalStateRegenMetrics } from "./metrics.js"; /** * Get the nearest BeaconState at or before a slot */ export declare function getNearestState(slot: number, config: BeaconConfig, db: IBeaconDb, nativeStateView: boolean): Promise<IBeaconStateView>; /** * Get and regenerate a historical state */ export declare function getHistoricalState(slot: number, config: BeaconConfig, db: IBeaconDb, nativeStateView: boolean, metrics?: HistoricalStateRegenMetrics): Promise<Uint8Array>; //# sourceMappingURL=getHistoricalState.d.ts.map