validators

package
v0.5.1-warp-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: GPL-3.0, LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	validators.State
	// contains filtered or unexported fields
}

func NewState

func NewState(chainContext *snow.Context) *State

NewState returns a wrapper of validators.State which special cases the handling of the Primary Network.

The wrapped state will return the chainContext's Subnet validator set instead of the Primary Network when the Primary Network SubnetID is passed in.

func (*State) GetValidatorSet

func (s *State) GetValidatorSet(
	ctx context.Context,
	height uint64,
	subnetID ids.ID,
) (map[ids.NodeID]*validators.GetValidatorOutput, error)

Jump to

Keyboard shortcuts

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