@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
16 lines • 757 B
TypeScript
import { Slot, ValidatorIndex } from "@lodestar/types";
/**
* Keeps a cache to filter block proposals from the same validator in the same slot.
*
* This cache is not bounded and for extremely long periods of non-finality it can grow a lot. However it's practically
* limited by the possible shufflings in those epochs, and the stored data is very cheap
*/
export declare class SeenBlockProposers {
private readonly proposerIndexesBySlot;
private finalizedSlot;
isKnown(blockSlot: Slot, proposerIndex: ValidatorIndex): boolean;
add(blockSlot: Slot, proposerIndex: ValidatorIndex): void;
prune(finalizedSlot: Slot): void;
seenAtEpoch(epoch: Slot, index: ValidatorIndex): boolean;
}
//# sourceMappingURL=seenBlockProposers.d.ts.map