prysm-pulse/beacon-chain/core/feed/block/events.go
Raul Jordan 20ab988a4a
Rename Block Package in Consensus-Types to Interfaces (#10605)
* interfaces package

* builds

* gaz
2022-05-02 14:32:37 -04:00

17 lines
478 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/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.SignedBeaconBlock
IsOptimistic bool
}