package
2.0.2
Repository: https://github.com/iotaledger/hornet.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

New creates a new tip-selector.
RandomInsecure returns a random int in the range of min to max.

# Constants

ScoreLazy is a lazy tip and should not be selected.
ScoreNonLazy is a non-lazy tip.
ScoreSemiLazy is a somewhat lazy tip.

# Variables

ErrNoTipsAvailable is returned when no tips are available in the node.

# Structs

Events represents events happening on the tip-selector.
Tip defines a tip.
TipSelector manages a list of tips and emits events for their removal and addition.
TipSelStats holds the stats for a tipselection run.

# Type aliases

Score defines the score of a tip.
TipSelectionFunc is a function which performs a tipselection and returns tips.