validators

package
v1.18.1-qos Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedManager

type ExtendedManager interface {
	validators.Manager
	AddStaker(subnetID ids.ID, nodeID ids.NodeID, pk *bls.PublicKey, txID ids.ID, weight uint64) error
	AddWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error
	RemoveWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) error
	GetValidatorIDs(subnetID ids.ID) []ids.NodeID
	Sample(subnetID ids.ID, size int) ([]ids.NodeID, error)
	GetMap(subnetID ids.ID) map[ids.NodeID]*validators.GetValidatorOutput
	RegisterCallbackListener(listener validators.ManagerCallbackListener)
	RegisterSetCallbackListener(subnetID ids.ID, listener validators.SetCallbackListener)
	NumSubnets() int
	NumValidators(subnetID ids.ID) int
	Count(subnetID ids.ID) int
	SubsetWeight(subnetID ids.ID, nodeIDs set.Set[ids.NodeID]) (uint64, error)
}

ExtendedManager extends the base validators.Manager with additional methods needed by the node

func NewManager

func NewManager() ExtendedManager

NewManager returns a new validator manager

Jump to

Keyboard shortcuts

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