validators

package
v0.0.0-...-70a4357 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 12 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, consAddr string) (bool, error)

func DoesOperAddrExistInDB

func DoesOperAddrExistInDB(db *database.Database, operAddr 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)

func RemoveNonLetterChars

func RemoveNonLetterChars(in string) (string, error)

TODO: Potentially this function should go to the tools package

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