Documentation ¶
Index ¶
- type ValidNodes
- type ValidatorsCache
- func (v *ValidatorsCache) Clone() *ValidatorsCache
- func (v *ValidatorsCache) Contains(addr common.Address) bool
- func (v *ValidatorsCache) GetAllOnlineValidators() mapset.Set
- func (v *ValidatorsCache) GetOnlineValidators(seed types.Seed, round uint64, step uint8, limit int) mapset.Set
- func (v *ValidatorsCache) Height() uint64
- func (v *ValidatorsCache) IsOnlineIdentity(addr common.Address) bool
- func (v *ValidatorsCache) Load()
- func (v *ValidatorsCache) NetworkSize() int
- func (v *ValidatorsCache) OnlineSize() int
- func (v *ValidatorsCache) RefreshIfUpdated(godAddress common.Address, block *types.Block)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) GetAllOnlineValidators ¶
func (v *ValidatorsCache) GetAllOnlineValidators() mapset.Set
func (*ValidatorsCache) GetOnlineValidators ¶
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)
Click to show internal directories.
Click to hide internal directories.