import { CompositeViewDU } from "@chainsafe/ssz"; import { phase0, ssz } from "@lodestar/types"; import { BeaconStateAllForks, CachedBeaconStateAllForks } from "../types.js"; /** * Store vote counts for every eth-execution block that has votes; if any eth-execution block wins majority support within a 1024-slot * voting period, formally accept that eth-execution block and set it as the official "latest known eth-execution block" in the eth-consensus state. * * PERF: Processing cost depends on the current amount of votes. * - Best case: Vote is already decided, zero work. See becomesNewEth1Data conditions * - Worst case: 1023 votes and no majority vote yet. */ export declare function processEth1Data(state: CachedBeaconStateAllForks, eth1Data: phase0.Eth1Data): void; /** * Returns true if adding the given `eth1Data` to `state.eth1DataVotes` would * result in a change to `state.eth1Data`. */ export declare function becomesNewEth1Data(state: BeaconStateAllForks, newEth1Data: CompositeViewDU): boolean; //# sourceMappingURL=processEth1Data.d.ts.map