block

package
v0.0.0-...-bb812c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0, GPL-3.0, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package block contains types for block-specific events fired during the runtime of a beacon node.

Index

Constants

View Source
const (
	// ReceivedBlock is sent after a block has been received by the beacon node via p2p or RPC.
	ReceivedBlock = iota + 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	BlockFeed() *event.Feed
}

Notifier interface defines the methods of the service that provides block updates to consumers.

type ReceivedBlockData

type ReceivedBlockData struct {
	SignedBlock  interfaces.ReadOnlySignedBeaconBlock
	IsOptimistic bool
}

ReceivedBlockData is the data sent with ReceivedBlock events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL