Documentation ¶
Overview ¶
Package validator implements the types related to the validators participating in istanbul consensus.
Index ¶
- func ExtractValidators(extraData []byte) []common.Address
- func GetWeightedCouncilData(valSet istanbul.ValidatorSet) (validators []common.Address, rewardAddrs []common.Address, ...)
- func New(addr common.Address) istanbul.Validator
- func NewSet(addrs []common.Address, policy istanbul.ProposerPolicy) istanbul.ValidatorSet
- func NewSubSet(addrs []common.Address, policy istanbul.ProposerPolicy, subSize uint64) istanbul.ValidatorSet
- func NewValidatorSet(addrs []common.Address, proposerPolicy istanbul.ProposerPolicy, ...) istanbul.ValidatorSet
- func NewWeightedCouncil(addrs []common.Address, rewards []common.Address, votingPowers []uint64, ...) *weightedCouncil
- func RecoverWeightedCouncilProposer(valSet istanbul.ValidatorSet, proposerAddrs []common.Address)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractValidators ¶
func GetWeightedCouncilData ¶
func NewSet ¶
func NewSet(addrs []common.Address, policy istanbul.ProposerPolicy) istanbul.ValidatorSet
func NewSubSet ¶
func NewSubSet(addrs []common.Address, policy istanbul.ProposerPolicy, subSize uint64) istanbul.ValidatorSet
func NewValidatorSet ¶
func NewValidatorSet(addrs []common.Address, proposerPolicy istanbul.ProposerPolicy, subGroupSize uint64, chain consensus.ChainReader) istanbul.ValidatorSet
func NewWeightedCouncil ¶
func RecoverWeightedCouncilProposer ¶
func RecoverWeightedCouncilProposer(valSet istanbul.ValidatorSet, proposerAddrs []common.Address)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.