validator

package
v0.0.0-...-f06f5b4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

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 New

func NewSet

func NewSet(validators []istanbul.ValidatorData) 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.

Jump to

Keyboard shortcuts

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