@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
18 lines • 782 B
TypeScript
import { ChainForkConfig } from "@lodestar/config";
import { DatabaseController, Repository } from "@lodestar/db";
import { Slot } from "@lodestar/types";
/**
* Slot to slot ranges that ensure that block range is fully backfilled
*
* If node starts backfilling at slots 1000, and backfills to 800, there will be an entry
* 1000 -> 800
*
* When the node is backfilling if it starts at 1200 and backfills to 1000, it will find this sequence and,
* jump directly to 800 and delete the key 1000.
*/
export declare class BackfilledRanges extends Repository<Slot, Slot> {
constructor(config: ChainForkConfig, db: DatabaseController<Uint8Array, Uint8Array>);
decodeKey(data: Buffer): number;
getId(_value: Slot): number;
}
//# sourceMappingURL=backfilledRanges.d.ts.map