validator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0, GPL-3.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeValidator

func DeserializeValidator(binaryData []byte) (istanbul.Validator, error)

func DeserializeValidatorSet

func DeserializeValidatorSet(binaryData []byte) (istanbul.ValidatorSet, error)

func ExtractValidators

func ExtractValidators(extraData []byte) []istanbul.ValidatorData

func GetProposerSelector

func GetProposerSelector(pp istanbul.ProposerPolicy) istanbul.ProposerSelector

GetProposerSelector returns the ProposerSelector for the given Policy

func MapValidatorsToData

func MapValidatorsToData(validators []istanbul.Validator) []istanbul.ValidatorData

func MapValidatorsToDataWithBLSKeyCache

func MapValidatorsToDataWithBLSKeyCache(validators []istanbul.Validator) []istanbul.ValidatorDataWithBLSKeyCache

func New

func NewSet

func NewSet(validators []istanbul.ValidatorData) istanbul.ValidatorSet

func NewSetFromDataWithBLSKeyCache

func NewSetFromDataWithBLSKeyCache(validators []istanbul.ValidatorDataWithBLSKeyCache) istanbul.ValidatorSet

func RoundRobinProposer

func RoundRobinProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator

RoundRobinProposer selects the next proposer with a round robin strategy according to storage order.

func ShuffledRoundRobinProposer

func ShuffledRoundRobinProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator

ShuffledRoundRobinProposer selects the next proposer with a round robin strategy according to a shuffled order.

func StickyProposer

func StickyProposer(valSet istanbul.ValidatorSet, proposer common.Address, round uint64) istanbul.Validator

StickyProposer selects the next proposer with a sticky strategy, advancing on round change.

func ValidExtraData

func ValidExtraData(extraData []byte) bool

Check whether the extraData is presented in prescribed form

Types

This section is empty.

Directories

Path Synopsis
Package random implements a language independent method of producing random validator orderings.
Package random implements a language independent method of producing random validator orderings.

Jump to

Keyboard shortcuts

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