validators

package
v0.0.0-...-19da55a Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewValidator

func AddNewValidator(db *database.Database, grpcCnn *grpc.ClientConn, valAddr string) error

func DoesConsAddrExistInDB

func DoesConsAddrExistInDB(db *database.Database, valAddr string) (bool, error)

func GetConsAddressFromConsPubKey

func GetConsAddressFromConsPubKey(inKey []byte) string

This function retrieves the consensus address from the consensus public key

func QueryValidatorsList

func QueryValidatorsList(grpcCnn *grpc.ClientConn) ([]string, error)

Types

type ValidatorRecord

type ValidatorRecord struct {
	OprAddr     string
	ConsAddr    string
	AccountAddr string
	Moniker     string
}

Jump to

Keyboard shortcuts

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