Documentation ¶
Index ¶
- type Committee
- func (committee *Committee) Committers() []int
- func (committee *Committee) Contains(addr crypto.Address) bool
- func (committee *Committee) IsProposer(addr crypto.Address, round int) bool
- func (committee *Committee) Proposer(round int) *validator.Validator
- func (committee *Committee) Size() int
- func (committee *Committee) TotalPower() int64
- func (committee *Committee) TotalStake() int64
- func (committee *Committee) Update(lastRound int, joined []*validator.Validator) error
- func (committee *Committee) Validator(addr crypto.Address) *validator.Validator
- func (committee *Committee) Validators() []*validator.Validator
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Committee ¶
type Committee struct {
// contains filtered or unexported fields
}
func GenerateTestCommittee ¶
GenerateTestCommittee generates a validator committee for testing purpose
func NewCommittee ¶
func (*Committee) Committers ¶ added in v1.0.0
func (*Committee) IsProposer ¶ added in v1.0.0
IsProposer checks if the address is proposer for this run at the given round
func (*Committee) Proposer ¶ added in v1.0.0
Proposer returns proposer info for this run at the given round
func (*Committee) TotalPower ¶ added in v1.0.0
func (*Committee) TotalStake ¶ added in v1.0.0
func (*Committee) Validators ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.