UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

11 lines 392 B
import { ForkName, GENESIS_EPOCH } from "@lodestar/params"; import { ssz } from "@lodestar/types"; export async function* onStatus(chain) { const status = chain.getStatus(); yield { data: ssz.phase0.Status.serialize(status), // Status topic is fork-agnostic boundary: { fork: ForkName.phase0, epoch: GENESIS_EPOCH }, }; } //# sourceMappingURL=status.js.map