UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

12 lines (9 loc) 454 B
import {GossipActionError} from "./gossipValidation.js"; export enum ProposerSlashingErrorCode { ALREADY_EXISTS = "PROPOSER_SLASHING_ERROR_ALREADY_EXISTS", INVALID = "PROPOSER_SLASHING_ERROR_INVALID", } export type ProposerSlashingErrorType = | {code: ProposerSlashingErrorCode.ALREADY_EXISTS} | {code: ProposerSlashingErrorCode.INVALID; error: Error}; export class ProposerSlashingError extends GossipActionError<ProposerSlashingErrorType> {}