Documentation ¶
Index ¶
- type StepValidators
- type ValidNodes
- type ValidatorsCache
- func (v *ValidatorsCache) Clone() *ValidatorsCache
- func (v *ValidatorsCache) Delegator(addr common.Address) common.Address
- func (v *ValidatorsCache) FindSubIdentity(pool common.Address, nonce uint32) (common.Address, uint32)
- func (v *ValidatorsCache) ForkCommitteeSize() int
- func (v *ValidatorsCache) GetAllOnlineValidators() mapset.Set
- func (v *ValidatorsCache) GetOnlineValidators(seed types.Seed, round uint64, step uint8, limit int) *StepValidators
- func (v *ValidatorsCache) Height() uint64
- func (v *ValidatorsCache) IsDiscriminated(addr common.Address) bool
- func (v *ValidatorsCache) IsOnlineIdentity(addr common.Address) bool
- func (v *ValidatorsCache) IsPool(pool common.Address) bool
- func (v *ValidatorsCache) IsValidated(addr common.Address) bool
- func (v *ValidatorsCache) Load()
- func (v *ValidatorsCache) NetworkSize() int
- func (v *ValidatorsCache) OnlineSize() int
- func (v *ValidatorsCache) PoolSize(pool common.Address) int
- func (v *ValidatorsCache) PoolSizeExceptNodes(pool common.Address, exceptNodes []common.Address, enableUpgrade8 bool) int
- func (v *ValidatorsCache) RefreshIfUpdated(godAddress common.Address, block *types.Block, diff *state.IdentityStateDiff)
- func (v *ValidatorsCache) UpdateFromIdentityStateDiff(diff *state.IdentityStateDiff)
- func (v *ValidatorsCache) ValidatorsSize() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StepValidators ¶ added in v0.25.0
type StepValidators struct { Original mapset.Set Validators mapset.Set ApprovedValidators mapset.Set }
func (*StepValidators) Approved ¶ added in v0.29.0
func (sv *StepValidators) Approved(addr common.Address) bool
func (*StepValidators) CanVote ¶ added in v0.29.0
func (sv *StepValidators) CanVote(addr common.Address) bool
func (*StepValidators) VotesCountSubtrahend ¶ added in v0.25.0
func (sv *StepValidators) VotesCountSubtrahend(agreementThreshold float64) int
type ValidNodes ¶
type ValidatorsCache ¶
type ValidatorsCache struct {
// contains filtered or unexported fields
}
func NewValidatorsCache ¶
func NewValidatorsCache(identityState *state.IdentityStateDB, godAddress common.Address) *ValidatorsCache
func (*ValidatorsCache) Clone ¶
func (v *ValidatorsCache) Clone() *ValidatorsCache
func (*ValidatorsCache) Delegator ¶ added in v0.25.0
func (v *ValidatorsCache) Delegator(addr common.Address) common.Address
func (*ValidatorsCache) FindSubIdentity ¶ added in v0.25.0
func (*ValidatorsCache) ForkCommitteeSize ¶ added in v0.26.0
func (v *ValidatorsCache) ForkCommitteeSize() int
func (*ValidatorsCache) GetAllOnlineValidators ¶
func (v *ValidatorsCache) GetAllOnlineValidators() mapset.Set
func (*ValidatorsCache) GetOnlineValidators ¶
func (v *ValidatorsCache) GetOnlineValidators(seed types.Seed, round uint64, step uint8, limit int) *StepValidators
func (*ValidatorsCache) Height ¶
func (v *ValidatorsCache) Height() uint64
func (*ValidatorsCache) IsDiscriminated ¶ added in v0.29.0
func (v *ValidatorsCache) IsDiscriminated(addr common.Address) bool
func (*ValidatorsCache) IsOnlineIdentity ¶
func (v *ValidatorsCache) IsOnlineIdentity(addr common.Address) bool
func (*ValidatorsCache) IsPool ¶ added in v0.25.0
func (v *ValidatorsCache) IsPool(pool common.Address) bool
func (*ValidatorsCache) IsValidated ¶ added in v0.29.0
func (v *ValidatorsCache) IsValidated(addr common.Address) bool
func (*ValidatorsCache) Load ¶
func (v *ValidatorsCache) Load()
func (*ValidatorsCache) NetworkSize ¶
func (v *ValidatorsCache) NetworkSize() int
func (*ValidatorsCache) OnlineSize ¶
func (v *ValidatorsCache) OnlineSize() int
func (*ValidatorsCache) PoolSize ¶ added in v0.25.0
func (v *ValidatorsCache) PoolSize(pool common.Address) int
func (*ValidatorsCache) PoolSizeExceptNodes ¶ added in v0.25.0
func (*ValidatorsCache) RefreshIfUpdated ¶
func (v *ValidatorsCache) RefreshIfUpdated(godAddress common.Address, block *types.Block, diff *state.IdentityStateDiff)
func (*ValidatorsCache) UpdateFromIdentityStateDiff ¶ added in v0.26.6
func (v *ValidatorsCache) UpdateFromIdentityStateDiff(diff *state.IdentityStateDiff)
func (*ValidatorsCache) ValidatorsSize ¶ added in v0.25.0
func (v *ValidatorsCache) ValidatorsSize() int
Click to show internal directories.
Click to hide internal directories.