validators

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: LGPL-3.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) Contains

func (v *ValidatorsCache) Contains(addr common.Address) bool

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) mapset.Set

func (*ValidatorsCache) Height

func (v *ValidatorsCache) Height() uint64

func (*ValidatorsCache) IsOnlineIdentity

func (v *ValidatorsCache) IsOnlineIdentity(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) RefreshIfUpdated

func (v *ValidatorsCache) RefreshIfUpdated(godAddress common.Address, block *types.Block)

Jump to

Keyboard shortcuts

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