forkchoice

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BankhashHasSupermajority = iota
	BankhashNoSupermajority
	BankhashNeedWait
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ForkChoiceService

type ForkChoiceService struct {
	// contains filtered or unexported fields
}

func NewForkChoiceService

func NewForkChoiceService(
	epoch uint64,
	epochStakes map[solana.PublicKey]uint64,
	totalEpochStake uint64,
	epochAuthorizedVoters *epochstakes.EpochAuthorizedVotersCache,
	poolSize int,
) (*ForkChoiceService, error)

func (*ForkChoiceService) IsBankhashCorrect

func (s *ForkChoiceService) IsBankhashCorrect(slot uint64, bankHash solana.Hash) int

func (*ForkChoiceService) Start

func (s *ForkChoiceService) Start()

func (*ForkChoiceService) Stop

func (s *ForkChoiceService) Stop()

func (*ForkChoiceService) SubmitBlock

func (s *ForkChoiceService) SubmitBlock(slot uint64, txs []*solana.Transaction)

Jump to

Keyboard shortcuts

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