Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetectionKind ¶
type DetectionKind uint8
DetectionKind defines an enum type that gives us information on the type of slashable offense found when analyzing validator min-max spans.
const ( // DoubleVote denotes a slashable offense in which // a validator cast two conflicting attestations within // the same target epoch. DoubleVote DetectionKind = iota // SurroundVote denotes a slashable offense in which // a validator surrounded or was surrounded by a previous // attestation created by the same validator. SurroundVote )
type DetectionResult ¶
type DetectionResult struct { SlashableEpoch uint64 Kind DetectionKind SigBytes [2]byte }
DetectionResult tells us the kind of slashable offense found from detecting on min-max spans + the slashable epoch for the offense. Also includes the signature bytes for assistance in finding the attestation for the slashing proof.
Click to show internal directories.
Click to hide internal directories.