Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peers ¶ added in v1.7.11
type Peers interface { validators.SetCallbackListener validators.Connector // ConnectedWeight returns the currently connected stake weight ConnectedWeight() uint64 // PreferredPeers returns the currently connected validators. If there are // no currently connected validators then it will return the currently // connected peers. PreferredPeers() ids.NodeIDSet }
type Startup ¶ added in v1.7.11
func NewStartup ¶ added in v1.7.11
type WeightTracker ¶
type WeightTracker interface { AddWeightForNode(nodeID ids.ShortID) error RemoveWeightForNode(nodeID ids.ShortID) error EnoughConnectedWeight() bool }
func NewWeightTracker ¶
func NewWeightTracker(beacons validators.Set, startupAlpha uint64) WeightTracker
Click to show internal directories.
Click to hide internal directories.