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
|
|
|
|
|
2021-07-06 15:34:05 +00:00
|
|
|
import (
|
2021-07-28 21:23:44 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1/block"
|
2021-07-06 15:34:05 +00:00
|
|
|
)
|
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 {
|
2021-07-23 20:10:15 +00:00
|
|
|
SignedBlock block.SignedBeaconBlock
|
2020-02-06 20:14:38 +00:00
|
|
|
}
|