github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/core/feed/block/events.go (about)

     1  // Package block contains types for block-specific events fired
     2  // during the runtime of a beacon node.
     3  package block
     4  
     5  import (
     6  	"github.com/prysmaticlabs/prysm/proto/interfaces"
     7  )
     8  
     9  const (
    10  	// ReceivedBlock is sent after a block has been received by the beacon node via p2p or RPC.
    11  	ReceivedBlock = iota + 1
    12  )
    13  
    14  // ReceivedBlockData is the data sent with ReceivedBlock events.
    15  type ReceivedBlockData struct {
    16  	SignedBlock interfaces.SignedBeaconBlock
    17  }