Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AttesterSlashingSSZ = zssz.GetSSZ((*AttesterSlashing)(nil))
Functions ¶
func IsDoubleVote ¶
func IsDoubleVote(a *AttestationData, b *AttestationData) bool
Check if a and b have the same target epoch.
func IsSlashableAttestationData ¶
func IsSlashableAttestationData(a *AttestationData, b *AttestationData) bool
func IsSurroundVote ¶
func IsSurroundVote(a *AttestationData, b *AttestationData) bool
Check if a surrounds b, i.E. source(a) < source(b) and target(a) > target(b)
Types ¶
type AttestSlashFeature ¶
type AttestSlashFeature struct { Meta interface { meta.RegistrySize meta.Pubkeys meta.Versioning meta.Validators meta.Proposers meta.Balance meta.Slasher meta.Exits } }
func (*AttestSlashFeature) ProcessAttesterSlashing ¶
func (f *AttestSlashFeature) ProcessAttesterSlashing(attesterSlashing *AttesterSlashing) error
func (*AttestSlashFeature) ProcessAttesterSlashings ¶
func (f *AttestSlashFeature) ProcessAttesterSlashings(ops []AttesterSlashing) error
type AttesterSlashing ¶
type AttesterSlashing struct { Attestation1 IndexedAttestation Attestation2 IndexedAttestation }
type AttesterSlashingProcessor ¶
type AttesterSlashingProcessor interface { ProcessAttesterSlashings(ops []AttesterSlashing) error ProcessAttesterSlashing(attesterSlashing *AttesterSlashing) error }
Click to show internal directories.
Click to hide internal directories.