chainvalidators

package
v1.21.42 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 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.ConvertChainToL1Validator, 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