2020-04-29 17:40:33 +00:00
|
|
|
// Package block contains types for block-specific events fired
|
|
|
|
// during the runtime of a beacon node.
|
2020-02-06 20:14:38 +00:00
|
|
|
package block
|
|
|
|
|
2022-08-16 12:20:13 +00:00
|
|
|
import "github.com/prysmaticlabs/prysm/v3/consensus-types/interfaces"
|
2020-02-06 20:14:38 +00:00
|
|
|
|
|
|
|
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 {
|
2022-05-02 18:32:37 +00:00
|
|
|
SignedBlock interfaces.SignedBeaconBlock
|
2022-03-25 16:31:50 +00:00
|
|
|
IsOptimistic bool
|
2020-02-06 20:14:38 +00:00
|
|
|
}
|