Documentation ¶
Index ¶
- Constants
- Variables
- func AppendVMConfig(configFilePath string, conf *TravisConfig)
- func GetInitCmd() *cobra.Command
- func GetStartCmd() *cobra.Command
- func SetUpRoot(cmd *cobra.Command)
- func SetupAccountContext() (*cli.Context, error)
- type BaseConfig
- type EthermintConfig
- type Services
- type TravisConfig
Constants ¶
View Source
const ( FlagChainID = "chain-id" FlagENV = "env" FlagVMGenesis = "vm-genesis" )
View Source
const ( FlagLogLevel = "log_level" FlagPassword = "password" FlagLightKDF = "lightkdf" )
nolint
View Source
const EyesCacheSize = 10000
nolint
View Source
const (
SubFlag = "sub"
)
Variables ¶
View Source
var InitCmd = GetInitCmd()
View Source
var RemoveAddrBookCmd = &cobra.Command{
Use: "unsafe_remove_addrbook",
Short: "(unsafe) Remove address book file",
Run: removeAddrBook,
}
RemoveAddrBookCmd removes the address book file.
View Source
var ResetPrivValidatorCmd = &cobra.Command{
Use: "unsafe_reset_priv_validator",
Short: "(unsafe) Reset this node's validator to genesis state",
Run: resetPrivValidator,
}
ResetPrivValidatorCmd resets the private validator files.
View Source
var ShowNodeIDCmd = &cobra.Command{
Use: "show_node_id",
Short: "Show this node's ID",
RunE: showNodeID,
}
ShowNodeIDCmd dumps node's ID to the standard output.
Functions ¶
func AppendVMConfig ¶
func AppendVMConfig(configFilePath string, conf *TravisConfig)
func GetInitCmd ¶
func GetStartCmd ¶
GetStartCmd - initialize a command as the start command with tick
func SetupAccountContext ¶
func SetupAccountContext() (*cli.Context, error)
Types ¶
type BaseConfig ¶
type BaseConfig struct { // The root directory for all data. // This should be set in viper so it can unmarshal into this struct RootDir string `mapstructure:"home"` }
func DefaultBaseConfig ¶
func DefaultBaseConfig() BaseConfig
type EthermintConfig ¶
type EthermintConfig struct { ChainId uint `mapstructure:"chainid"` RootDir string `mapstructure:"home"` ABCIAddr string `mapstructure:"abci_laddr"` ABCIProtocol string `mapstructure:"abci_protocol"` RPCEnabledFlag bool `mapstructure:"rpc"` RPCListenAddrFlag string `mapstructure:"rpcaddr"` RPCPortFlag uint `mapstructure:"rpcport"` RPCCORSDomainFlag string `mapstructure:"rpccorsdomain"` RPCApiFlag string `mapstructure:"rpcapi"` RPCVirtualHostsFlag string `mapstructure:"rpcvhosts"` WSEnabledFlag bool `mapstructure:"ws"` WSListenAddrFlag string `mapstructure:"wsaddr"` WSPortFlag uint `mapstructure:"wsport"` WSApiFlag string `mapstructure:"wsapi"` IPCDisabledFlag bool `mapstructure:"ipcdisable"` VerbosityFlag uint `mapstructure:"verbosity"` GCMode string `mapstructure:"gcmode"` ListenPortFlag uint `mapstructure:"listenport"` LightKDFFlag bool `mapstructure:"lightkdf"` }
func DefaultEthermintConfig ¶
func DefaultEthermintConfig() EthermintConfig
type TravisConfig ¶
type TravisConfig struct { BaseConfig BaseConfig `mapstructure:",squash"` TMConfig tmcfg.Config `mapstructure:",squash"` EMConfig EthermintConfig `mapstructure:"vm"` }
func DefaultConfig ¶
func DefaultConfig() *TravisConfig
func ParseConfig ¶
func ParseConfig() (*TravisConfig, error)
copied from tendermint/commands/root.go to call our revised EnsureRoot
Click to show internal directories.
Click to hide internal directories.