mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
17 lines
489 B
Go
17 lines
489 B
Go
// Package block contains types for block-specific events fired
|
|
// during the runtime of a beacon node.
|
|
package block
|
|
|
|
import "github.com/prysmaticlabs/prysm/v3/consensus-types/interfaces"
|
|
|
|
const (
|
|
// ReceivedBlock is sent after a block has been received by the beacon node via p2p or RPC.
|
|
ReceivedBlock = iota + 1
|
|
)
|
|
|
|
// ReceivedBlockData is the data sent with ReceivedBlock events.
|
|
type ReceivedBlockData struct {
|
|
SignedBlock interfaces.ReadOnlySignedBeaconBlock
|
|
IsOptimistic bool
|
|
}
|