Files
prysm/beacon-chain/core/feed/block/events.go
Potuz 3c463d8171 Pass dependent roots in block events (#15227)
* Pass dependent roots in block events

* Check for empty roots
2025-04-28 00:00:48 +00:00

19 lines
554 B
Go

// Package block contains types for block-specific events fired
// during the runtime of a beacon node.
package block
import "github.com/OffchainLabs/prysm/v6/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.ReadOnlySignedBeaconBlock
CurrDependentRoot [32]byte
PrevDependentRoot [32]byte
IsOptimistic bool
}