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)
Click to show internal directories.
Click to hide internal directories.