mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
5e56b5fdd7
* re enabling blob events * terence's comments * Update beacon-chain/rpc/eth/events/events_test.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
64 lines
2.3 KiB
Go
64 lines
2.3 KiB
Go
// Package operation contains types for block operation-specific events fired during the runtime of a beacon node.
|
|
package operation
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/consensus-types/blocks"
|
|
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
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
|
|
)
|
|
|
|
// UnAggregatedAttReceivedData is the data sent with UnaggregatedAttReceived events.
|
|
type UnAggregatedAttReceivedData struct {
|
|
// Attestation is the unaggregated attestation object.
|
|
Attestation *ethpb.Attestation
|
|
}
|
|
|
|
// AggregatedAttReceivedData is the data sent with AggregatedAttReceived events.
|
|
type AggregatedAttReceivedData struct {
|
|
// Attestation is the aggregated attestation object.
|
|
Attestation *ethpb.AggregateAttestationAndProof
|
|
}
|
|
|
|
// ExitReceivedData is the data sent with ExitReceived events.
|
|
type ExitReceivedData struct {
|
|
// Exit is the voluntary exit object.
|
|
Exit *ethpb.SignedVoluntaryExit
|
|
}
|
|
|
|
// SyncCommitteeContributionReceivedData is the data sent with SyncCommitteeContributionReceived objects.
|
|
type SyncCommitteeContributionReceivedData struct {
|
|
// Contribution is the sync committee contribution object.
|
|
Contribution *ethpb.SignedContributionAndProof
|
|
}
|
|
|
|
// BLSToExecutionChangeReceivedData is the data sent with BLSToExecutionChangeReceived events.
|
|
type BLSToExecutionChangeReceivedData struct {
|
|
Change *ethpb.SignedBLSToExecutionChange
|
|
}
|
|
|
|
// BlobSidecarReceivedData is the data sent with BlobSidecarReceived events.
|
|
type BlobSidecarReceivedData struct {
|
|
Blob *blocks.VerifiedROBlob
|
|
}
|