forkchoice

package
v5.0.4-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dump

type Dump struct {
	JustifiedCheckpoint           *eth.Checkpoint
	FinalizedCheckpoint           *eth.Checkpoint
	UnrealizedJustifiedCheckpoint *eth.Checkpoint
	UnrealizedFinalizedCheckpoint *eth.Checkpoint
	ProposerBoostRoot             []byte
	PreviousProposerBoostRoot     []byte
	HeadRoot                      []byte
	ForkChoiceNodes               []*Node
}

type Node

type Node struct {
	Validity                 NodeValidity
	ExecutionOptimistic      bool
	Slot                     primitives.Slot
	JustifiedEpoch           primitives.Epoch
	FinalizedEpoch           primitives.Epoch
	UnrealizedJustifiedEpoch primitives.Epoch
	UnrealizedFinalizedEpoch primitives.Epoch
	Balance                  uint64
	Weight                   uint64
	Timestamp                uint64
	BlockRoot                []byte
	ParentRoot               []byte
	ExecutionBlockHash       []byte
}

type NodeValidity

type NodeValidity uint8
const (
	Valid NodeValidity = iota
	Invalid
	Optimistic
)

func (NodeValidity) String

func (v NodeValidity) String() string

Jump to

Keyboard shortcuts

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