UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

20 lines 771 B
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 = { [SyncState.Stalled]: 0, [SyncState.SyncingFinalized]: 1, [SyncState.SyncingHead]: 2, [SyncState.Synced]: 3, }; //# sourceMappingURL=interface.js.map