Documentation ¶
Index ¶
- Constants
- Variables
- func CreateGenesisValidatorFiles(cfg *config.Config, genesis, privVal, appName string) error
- func GetGenesisJSON(pubkey, chainID, denom, addr string, options string) string
- func GetInitCmd(defaultDenom string, options []string) *cobra.Command
- func GetTickStartCmd(tick sdk.Ticker) *cobra.Command
- func SetUpRoot(cmd *cobra.Command)
- type Address
- type Key
Constants ¶
const ( FlagAddress = "address" FlagWithoutTendermint = "without-tendermint" )
nolint
const EyesCacheSize = 10000
nolint TODO: move to config file
const (
FlagLogLevel = "log_level"
)
nolint
Variables ¶
var ( // InitCmd - node initialization command InitCmd = GetInitCmd("mycoin", []string{}) //nolint - flags FlagChainID = "chain-id" //TODO group with other flags or remove? is this already a flag here? FlagDenom = "denom" //TODO group with other flags or remove? is this already a flag here? FlagOption = "option" FlagStatic = "static" )
var ( // Handler - use a global to store the handler, so we can set it in main. // TODO: figure out a cleaner way to register plugins Handler sdk.Handler )
var StartCmd = &cobra.Command{
Use: "start",
Short: "Start this full node",
RunE: startCmd,
}
StartCmd - command to start running the abci app (and tendermint)!
var StaticPK = "7B90EA87E7DC0C7145C8C48C08992BE271C7234134343E8A8E8008E617DE7B30"
StaticPK - static public key for test cases
var StaticPrivValJSON = `` /* 475-byte string literal not displayed */
StaticPrivValJSON - static validator private key file contents in json
var UnsafeResetAllCmd = &cobra.Command{
Use: "unsafe_reset_all",
Short: "Reset all blockchain data",
RunE: unsafeResetAllCmd,
}
UnsafeResetAllCmd - extension of the tendermint command, resets initialization
Functions ¶
func CreateGenesisValidatorFiles ¶
CreateGenesisValidatorFiles creates a genesis file with these contents and a private validator file
func GetGenesisJSON ¶
GetGenesisJSON returns a new tendermint genesis with Basecoin app_options that grant a large amount of "mycoin" to a single address TODO: A better UX for generating genesis files
func GetInitCmd ¶
GetInitCmd - get the node initialization command, with a custom genesis account denom
func GetTickStartCmd ¶
GetTickStartCmd - initialize a command as the start command with tick
Types ¶
type Address ¶
type Address [20]byte
Address - public address for a key
func (Address) MarshalJSON ¶
MarshalJSON - marshal the json bytes of the address
func (*Address) UnmarshalJSON ¶
UnmarshalJSON - unmarshal the json bytes of the address