UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

12 lines (9 loc) 460 B
import {GossipActionError} from "./gossipValidation.js"; export enum AttesterSlashingErrorCode { ALREADY_EXISTS = "ATTESTATION_SLASHING_ERROR_ALREADY_EXISTS", INVALID = "ATTESTATION_SLASHING_ERROR_INVALID", } export type AttesterSlashingErrorType = | {code: AttesterSlashingErrorCode.ALREADY_EXISTS} | {code: AttesterSlashingErrorCode.INVALID; error: Error}; export class AttesterSlashingError extends GossipActionError<AttesterSlashingErrorType> {}