Versions in this module Expand all Collapse all v0 v0.5.4 Sep 24, 2020 Changes in this version + var ErrNoTipsAvailable = errors.New("no tips available") + var ErrTipLazy = errors.New("tip already lazy") + func TipCaller(handler interface{}, params ...interface{}) + func WalkerStatsCaller(handler interface{}, params ...interface{}) + type Events struct + TipAdded *events.Event + TipRemoved *events.Event + TipSelPerformed *events.Event + type Score int + const ScoreLazy + const ScoreNonLazy + const ScoreSemiLazy + type Tip struct + ApproversCount *atomic.Uint32 + Hash hornet.Hash + Score Score + TimeFirstApprover time.Time + type TipSelStats struct + Duration time.Duration + LazyTips int + type TipSelectionFunc = func() (hornet.Hashes, error) + type TipSelector struct + Events Events + func New(maxDeltaTxYoungestRootSnapshotIndexToLSMI int, ...) *TipSelector + func (ts *TipSelector) AddTip(bndl *tangle.Bundle) + func (ts *TipSelector) CleanUpReferencedTips() int + func (ts *TipSelector) SelectNonLazyTips() (hornet.Hashes, error) + func (ts *TipSelector) SelectSemiLazyTips() (hornet.Hashes, error) + func (ts *TipSelector) SelectSpammerTips() (isSemiLazy bool, tips hornet.Hashes, err error) + func (ts *TipSelector) UpdateScores() int