UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

17 lines 1.03 kB
import { ChainForkConfig } from "@lodestar/config"; import { LightClientOptimisticUpdate } from "@lodestar/types"; import { IBeaconChain } from "../interface.js"; export declare function validateLightClientOptimisticUpdate(config: ChainForkConfig, chain: IBeaconChain, gossipedOptimisticUpdate: LightClientOptimisticUpdate): void; /** * Returns true, if the spec condition below triggers an IGNORE. * * Sig +1/3 time * -----|----- * xxx|------- (x is not okay) * * [IGNORE] The *update is received after the block at signature_slot was given enough time to propagate * through the network -- i.e. validate that one-third of *update.signature_slot has transpired * (SECONDS_PER_SLOT / INTERVALS_PER_SLOT seconds after the start of the slot, with a MAXIMUM_GOSSIP_CLOCK_DISPARITY allowance) */ export declare function updateReceivedTooEarly(config: ChainForkConfig, genesisTime: number, update: Pick<LightClientOptimisticUpdate, "signatureSlot">): boolean; //# sourceMappingURL=lightClientOptimisticUpdate.d.ts.map