@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
20 lines • 771 B
JavaScript
export { SyncState };
var SyncState;
(function (SyncState) {
/** No useful peers are connected */
SyncState["Stalled"] = "Stalled";
/** The node is performing a long-range sync over a finalized chain */
SyncState["SyncingFinalized"] = "SyncingFinalized";
/** The node is performing a long-range sync over head chains */
SyncState["SyncingHead"] = "SyncingHead";
/** The node is up to date with all known peers */
SyncState["Synced"] = "Synced";
})(SyncState || (SyncState = {}));
/** Map a SyncState to an integer for rendering in Grafana */
export const syncStateMetric = {
[]: 0,
[]: 1,
[]: 2,
[]: 3,
};
//# sourceMappingURL=interface.js.map