Documentation
¶
Index ¶
- Constants
- Variables
- func AddServerCommands(ctx *app.Context, cdc *amino.Codec, rootCmd *cobra.Command, ...)
- func Bech32ifyConsPub(pub crypto.PubKey) (string, error)
- func GenTxCmd(ctx *app.Context, cdc *amino.Codec, appInit app.AppInit) *cobra.Command
- func GetVersion() string
- func InitWithConfig(cdc *amino.Codec, appInit app.AppInit, c *cfg.Config, initConfig InitConfig) (chainID string, nodeID string, appMessage json.RawMessage, err error)
- func StartInProcess(ctx *app.Context, appCreator app.AppCreator) (*node.Node, error)
- func UnsafeResetAllCmd(ctx *app.Context) *cobra.Command
- type GenesisTx
- type InitConfig
Constants ¶
View Source
const Bech32PrefixConsPub = "cosmosvalconspub"
View Source
const (
FlagJson = "json"
)
Variables ¶
View Source
var ( FlagName = "name" FlagClientHome = "home-client" FlagOWK = "owk" )
Parameter names, for init gen-tx command
View Source
var ( FlagOverwrite = "overwrite" FlagWithTxs = "with-txs" FlagIP = "ip" FlagChainID = "chain-id" )
parameter names, init command
Functions ¶
func AddServerCommands ¶
func AddServerCommands( ctx *app.Context, cdc *amino.Codec, rootCmd *cobra.Command, appInit app.AppInit, appCreator app.AppCreator, appExport app.AppExporter)
add server commands
func Bech32ifyConsPub ¶
Bech32ifyConsPub returns a Bech32 encoded string containing the Bech32PrefixConsPub prefixfor a given consensus node's PubKey.
func InitWithConfig ¶ added in v0.3.0
func StartInProcess ¶ added in v0.3.0
Types ¶
type GenesisTx ¶
type GenesisTx struct { NodeID string `json:"node_id"` IP string `json:"ip"` Validator tmtypes.GenesisValidator `json:"validator"` AppGenTx json.RawMessage `json:"app_gen_tx"` }
genesis piece structure for creating combined genesis
Click to show internal directories.
Click to hide internal directories.