types

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestedEpochForValidator

type AttestedEpochForValidator struct {
	ValidatorIndex primitives.ValidatorIndex
	Epoch          primitives.Epoch
}

AttestedEpochForValidator encapsulates a previously attested epoch for a validator index.

type AttesterDoubleVote

type AttesterDoubleVote struct {
	Target         primitives.Epoch
	ValidatorIndex primitives.ValidatorIndex
	Wrapper_1      *IndexedAttestationWrapper
	Wrapper_2      *IndexedAttestationWrapper
}

AttesterDoubleVote represents a double vote instance which is a slashable event for attesters.

type ChunkKind

type ChunkKind uint

ChunkKind to differentiate what kind of span we are working with for slashing detection, either min or max span.

const (
	MinSpan ChunkKind = iota
	MaxSpan
)

func (ChunkKind) String added in v5.0.3

func (c ChunkKind) String() string

String returns the string representation of the chunk kind.

type DoubleBlockProposal

type DoubleBlockProposal struct {
	Slot                   primitives.Slot
	ValidatorIndex         primitives.ValidatorIndex
	PrevBeaconBlockWrapper *SignedBlockHeaderWrapper
	BeaconBlockWrapper     *SignedBlockHeaderWrapper
}

DoubleBlockProposal containing an incoming and an existing proposal's signing root.

type IndexedAttestationWrapper

type IndexedAttestationWrapper struct {
	IndexedAttestation ethpb.IndexedAtt
	DataRoot           [32]byte
}

IndexedAttestationWrapper contains an indexed attestation with its data root to reduce duplicated computation.

type SignedBlockHeaderWrapper

type SignedBlockHeaderWrapper struct {
	SignedBeaconBlockHeader *ethpb.SignedBeaconBlockHeader
	HeaderRoot              [32]byte
}

SignedBlockHeaderWrapper contains an signed beacon block header with its header root to reduce duplicated computation.

type WrappedIndexedAtt added in v5.1.0

type WrappedIndexedAtt struct {
	ethpb.IndexedAtt
}

WrappedIndexedAtt is a wrapper over the IndexedAtt interface. The wrapper is needed to overcome the limitation of the event feed library which doesn't work well with interface types.

Jump to

Keyboard shortcuts

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