@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
13 lines • 545 B
JavaScript
import { BinaryRepository } from "@lodestar/db";
import { Bucket, getBucketNameByValue } from "../buckets.js";
/**
* Store temporary checkpoint states.
* We should only put/get binary data from this repository, consumer will load it into an existing state ViewDU object.
*/
export class CheckpointStateRepository extends BinaryRepository {
constructor(config, db) {
const bucket = Bucket.allForks_checkpointState;
super(config, db, bucket, getBucketNameByValue(bucket));
}
}
//# sourceMappingURL=checkpointState.js.map