tracker

package
v1.9.12 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accepted added in v1.9.6

type Accepted interface {
	validators.SetCallbackListener

	// SetAcceptedFrontier updates the latest frontier for [nodeID] to
	// [frontier]. If [nodeID] is not currently a validator, this is a noop.
	SetAcceptedFrontier(nodeID ids.NodeID, frontier []ids.ID)
	// AcceptedFrontier returns the latest known accepted frontier of [nodeID].
	// If [nodeID]'s last accepted frontier is unknown, an empty slice will be
	// returned.
	AcceptedFrontier(nodeID ids.NodeID) []ids.ID
}

func NewAccepted added in v1.9.6

func NewAccepted() Accepted

type Peers added in v1.8.4

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() set.Set[ids.NodeID]
}

func NewPeers added in v1.8.4

func NewPeers() Peers

type Startup added in v1.8.4

type Startup interface {
	Peers

	ShouldStart() bool
}

func NewStartup added in v1.8.4

func NewStartup(peers Peers, startupWeight uint64) Startup

Jump to

Keyboard shortcuts

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