@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
16 lines • 794 B
TypeScript
import { RootHex, Slot, ValidatorIndex } from "@lodestar/types";
/**
* Tracks signed proposer preferences we've already seen per (dependent_root, proposal_slot, validator_index).
*/
export declare class SeenProposerPreferences {
private readonly validatorByDependentRootBySlot;
isKnown(dependentRoot: RootHex, proposalSlot: Slot, validatorIndex: ValidatorIndex): boolean;
add(dependentRoot: RootHex, proposalSlot: Slot, validatorIndex: ValidatorIndex): void;
/**
* Entries are only load-bearing while `proposal_slot > current_slot`. Once the slot has
* passed the `[IGNORE] proposal_slot > current_slot` gossip rule takes over, so drop them
* on each slot tick.
*/
prune(currentSlot: Slot): void;
}
//# sourceMappingURL=seenProposerPreferences.d.ts.map