Documentation
¶
Overview ¶
Package selectpeers is package contains algorithm that selects peers based on the deterministic connection selection algorithm described in DIP-6
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidatorSelector ¶
type ValidatorSelector interface {
// SelectValidators selects some validators from `validators` slice
SelectValidators(validators []*types.Validator, me *types.Validator) ([]*types.Validator, error)
}
ValidatorSelector represents an algorithm that chooses some validators from provided list
func NewDIP6ValidatorSelector ¶
func NewDIP6ValidatorSelector(quorumHash bytes.HexBytes) ValidatorSelector
NewDIP6ValidatorSelector creates new implementation of validator selector algorithm
Click to show internal directories.
Click to hide internal directories.