UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

18 lines 999 B
import { PubkeyIndexMap } from "@chainsafe/pubkey-index-map"; import { BeaconConfig } from "@lodestar/config"; import { BeaconStateAllForks, CachedBeaconStateAllForks } from "@lodestar/state-transition"; import { IBeaconDb } from "../../../db/index.js"; import { HistoricalStateRegenMetrics } from "./metrics.js"; /** * Populate a PubkeyIndexMap with any new entries based on a BeaconState */ export declare function syncPubkeyCache(state: BeaconStateAllForks, pubkey2index: PubkeyIndexMap): void; /** * Get the nearest BeaconState at or before a slot */ export declare function getNearestState(slot: number, config: BeaconConfig, db: IBeaconDb, pubkey2index: PubkeyIndexMap): Promise<CachedBeaconStateAllForks>; /** * Get and regenerate a historical state */ export declare function getHistoricalState(slot: number, config: BeaconConfig, db: IBeaconDb, pubkey2index: PubkeyIndexMap, metrics?: HistoricalStateRegenMetrics): Promise<Uint8Array>; //# sourceMappingURL=getHistoricalState.d.ts.map