attslash

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 5 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL