validators

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: LGPL-3.0 Imports: 13 Imported by: 4

Documentation

Index

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 ValidNodes = []common.Address

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 (v *ValidatorsCache) FindSubIdentity(pool common.Address, nonce uint32) (common.Address, uint32)

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 (v *ValidatorsCache) PoolSizeExceptNodes(pool common.Address, exceptNodes []common.Address) int

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

Jump to

Keyboard shortcuts

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