Documentation ¶
Index ¶
- Constants
- func GenerateExtraDataPolyBft(validators []*validator.ValidatorMetadata) ([]byte, error)
- func GetCommand() *cobra.Command
- func GetValidatorKeyFiles(rootDir, filePrefix string) ([]string, error)
- func ReadValidatorsByPrefix(dir, prefix string) ([]*validator.GenesisValidator, error)
- type GenesisGenError
- type GenesisResult
Constants ¶
View Source
const ( StatError = "StatError" ExistsError = "ExistsError" )
Variables ¶
This section is empty.
Functions ¶
func GenerateExtraDataPolyBft ¶
func GenerateExtraDataPolyBft(validators []*validator.ValidatorMetadata) ([]byte, error)
GenerateExtraDataPolyBft populates Extra with specific fields required for polybft consensus protocol
func GetCommand ¶
func GetValidatorKeyFiles ¶
GetValidatorKeyFiles returns file names which has validator secrets
func ReadValidatorsByPrefix ¶
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 ¶
type GenesisGenError struct {
// contains filtered or unexported fields
}
GenesisGenError is a specific error type for generating genesis
func (*GenesisGenError) GetMessage ¶
func (g *GenesisGenError) GetMessage() string
GetMessage returns the message of the genesis generation error
func (*GenesisGenError) GetType ¶
func (g *GenesisGenError) GetType() string
GetType returns the type of the genesis generation error
type GenesisResult ¶
type GenesisResult struct {
Message string `json:"message"`
}
func (*GenesisResult) GetOutput ¶
func (r *GenesisResult) GetOutput() string
Click to show internal directories.
Click to hide internal directories.