genesis

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 38 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StatError   = "StatError"
	ExistsError = "ExistsError"
)

Variables

This section is empty.

Functions

func GenerateExtraDataPolyBft added in v1.0.0

func GenerateExtraDataPolyBft(validators []*validator.ValidatorMetadata) ([]byte, error)

GenerateExtraDataPolyBft populates Extra with specific fields required for polybft consensus protocol

func GetCommand added in v0.3.0

func GetCommand() *cobra.Command

func GetValidatorKeyFiles added in v0.8.0

func GetValidatorKeyFiles(rootDir, filePrefix string) ([]string, error)

GetValidatorKeyFiles returns file names which has validator secrets

func ReadValidatorsByPrefix added in v0.8.0

func ReadValidatorsByPrefix(dir, prefix string) ([]*validator.GenesisValidator, error)

ReadValidatorsByPrefix reads validators secrets on a given root directory and with given folder prefix

Types

type GenesisGenError added in v0.3.0

type GenesisGenError struct {
	// contains filtered or unexported fields
}

GenesisGenError is a specific error type for generating genesis

func (*GenesisGenError) GetMessage added in v0.3.0

func (g *GenesisGenError) GetMessage() string

GetMessage returns the message of the genesis generation error

func (*GenesisGenError) GetType added in v0.3.0

func (g *GenesisGenError) GetType() string

GetType returns the type of the genesis generation error

type GenesisResult added in v0.3.0

type GenesisResult struct {
	Message string `json:"message"`
}

func (*GenesisResult) GetOutput added in v0.3.0

func (r *GenesisResult) GetOutput() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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