prysm-pulse/beacon-chain/core/feed/block/events.go
Raul Jordan 3416962fc2
All Beacon Node Package-Level Godocs (#5677)
* package level godocs fixed

* all beacon node godocs

* comment and gaz

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-04-29 12:40:33 -05:00

18 lines
458 B
Go

// Package block contains types for block-specific events fired
// during the runtime of a beacon node.
package block
import (
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
)
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 *ethpb.SignedBeaconBlock
}