operation

package
v5.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package operation contains types for block operation-specific events fired during the runtime of a beacon node.

Index

Constants

View Source
const (
	// UnaggregatedAttReceived is sent after an unaggregated attestation object has been received
	// from the outside world. (eg. in RPC or sync)
	UnaggregatedAttReceived = iota + 1

	// AggregatedAttReceived is sent after an aggregated attestation object has been received
	// from the outside world. (eg. in sync)
	AggregatedAttReceived

	// ExitReceived is sent after an voluntary exit object has been received from the outside world (eg in RPC or sync)
	ExitReceived

	// SyncCommitteeContributionReceived is sent after a sync committee contribution object has been received.
	SyncCommitteeContributionReceived

	// BLSToExecutionChangeReceived is sent after a BLS to execution change object has been received from gossip or rpc.
	BLSToExecutionChangeReceived

	// BlobSidecarReceived is sent after a blob sidecar is received from gossip or rpc.
	BlobSidecarReceived = 6

	// ProposerSlashingReceived is sent after a proposer slashing is received from gossip or rpc
	ProposerSlashingReceived = 7

	// AttesterSlashingReceived is sent after an attester slashing is received from gossip or rpc
	AttesterSlashingReceived = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregatedAttReceivedData

type AggregatedAttReceivedData struct {
	// Attestation is the aggregated attestation object.
	Attestation *ethpb.AggregateAttestationAndProof
}

AggregatedAttReceivedData is the data sent with AggregatedAttReceived events.

type AttesterSlashingReceivedData

type AttesterSlashingReceivedData struct {
	AttesterSlashing *ethpb.AttesterSlashing
}

AttesterSlashingReceivedData is the data sent with AttesterSlashingReceived events.

type BLSToExecutionChangeReceivedData

type BLSToExecutionChangeReceivedData struct {
	Change *ethpb.SignedBLSToExecutionChange
}

BLSToExecutionChangeReceivedData is the data sent with BLSToExecutionChangeReceived events.

type BlobSidecarReceivedData

type BlobSidecarReceivedData struct {
	Blob *blocks.VerifiedROBlob
}

BlobSidecarReceivedData is the data sent with BlobSidecarReceived events.

type ExitReceivedData

type ExitReceivedData struct {
	// Exit is the voluntary exit object.
	Exit *ethpb.SignedVoluntaryExit
}

ExitReceivedData is the data sent with ExitReceived events.

type Notifier

type Notifier interface {
	OperationFeed() *event.Feed
}

Notifier interface defines the methods of the service that provides beacon block operation updates to consumers.

type ProposerSlashingReceivedData

type ProposerSlashingReceivedData struct {
	ProposerSlashing *ethpb.ProposerSlashing
}

ProposerSlashingReceivedData is the data sent with ProposerSlashingReceived events.

type SyncCommitteeContributionReceivedData

type SyncCommitteeContributionReceivedData struct {
	// Contribution is the sync committee contribution object.
	Contribution *ethpb.SignedContributionAndProof
}

SyncCommitteeContributionReceivedData is the data sent with SyncCommitteeContributionReceived objects.

type UnAggregatedAttReceivedData

type UnAggregatedAttReceivedData struct {
	// Attestation is the unaggregated attestation object.
	Attestation *ethpb.Attestation
}

UnAggregatedAttReceivedData is the data sent with UnaggregatedAttReceived events.

Jump to

Keyboard shortcuts

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