UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

13 lines 661 B
import { CachedBeaconStateAllForks } from "@lodestar/state-transition"; import { BeaconBlock, BlindedBeaconBlock, Gwei, Root } from "@lodestar/types"; import { Metrics } from "../../metrics/index.js"; /** * Instead of running fastStateTransition(), only need to process block since * state is processed until block.slot already (this is to avoid double * epoch transition which happen at slot % 32 === 0) */ export declare function computeNewStateRoot(metrics: Metrics | null, state: CachedBeaconStateAllForks, block: BeaconBlock | BlindedBeaconBlock): { newStateRoot: Root; proposerReward: Gwei; }; //# sourceMappingURL=computeNewStateRoot.d.ts.map