Help us shape the future of Go! Take the 2026 Go Developer Survey

chainvalidators

package
v1.102.7 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package chainvalidators provides typed chain validator operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToL1Validators

func ToL1Validators(vs []models.Validator) ([]*txs.ConvertNetworkToL1Validator, error)

ToL1Validators converts SDK validators to node L1 validator format. This is the format required for P-Chain transactions.

Types

type ChainValidator

type ChainValidator struct {
	NodeID  ids.NodeID
	Weight  uint64
	Balance uint64
}

ChainValidator represents a typed validator for a chain.

func FromModels

func FromModels(vs []models.Validator) ([]ChainValidator, error)

FromModels converts SDK validators to typed ChainValidators.

Jump to

Keyboard shortcuts

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