gpos

package
v0.0.0-...-9aa21c9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	ID               idx.ValidatorID
	Address          common.Address
	PubKey           validatorpk.PubKey
	CreationTime     inter.Timestamp
	CreationEpoch    idx.Epoch
	DeactivatedTime  inter.Timestamp
	DeactivatedEpoch idx.Epoch
	Status           uint64
}

Validator is a helper structure to define genesis validators

type Validators

type Validators []Validator

func (Validators) Addresses

func (gv Validators) Addresses() []common.Address

Addresses returns not sorted genesis addresses

func (Validators) Map

func (gv Validators) Map() map[idx.ValidatorID]Validator

Map converts Validators to map

func (Validators) PubKeys

func (gv Validators) PubKeys() []validatorpk.PubKey

PubKeys returns not sorted genesis pub keys

Jump to

Keyboard shortcuts

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