mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
d077483577
* v3 import renamings * tidy * fmt * rev * Update beacon-chain/core/epoch/precompute/reward_penalty_test.go * Update beacon-chain/core/helpers/validators_test.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/iface/BUILD.bazel * Update beacon-chain/db/kv/kv.go * Update beacon-chain/db/kv/state.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/sync/initial-sync/service.go * fix deps * fix bad replacements * fix bad replacements * change back * gohashtree version * fix deps Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
47 lines
1.7 KiB
Go
47 lines
1.7 KiB
Go
// Package operation contains types for block operation-specific events fired during the runtime of a beacon node.
|
|
package operation
|
|
|
|
import (
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/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
|
|
)
|
|
|
|
// 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
|
|
}
|