common

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultChainID = "dev"

Variables

View Source
var (
	ErrAppStateNotSet      = errors.New("genesis app state not set")
	ErrNoOutputFile        = errors.New("no output file path specified")
	ErrUnableToLoadGenesis = errors.New("unable to load genesis")
)

Functions

func GetDefaultGenesis

func GetDefaultGenesis() *types.GenesisDoc

GetDefaultGenesis returns the default genesis config

func GetDummyKey

func GetDummyKey(t *testing.T) crypto.PubKey

GetDummyKey generates a random public key, and returns the key info

func GetDummyKeys

func GetDummyKeys(t *testing.T, count int) []crypto.PubKey

GetDummyKeys generates random keys for testing

Types

type Cfg

type Cfg struct {
	GenesisPath string
}

Cfg is the common configuration for genesis commands that require a genesis.json

func (*Cfg) RegisterFlags

func (c *Cfg) RegisterFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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