Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagAddress = "address" FlagPubKey = "pubkey" FlagRoles = "roles" FlagVID = "vid" )
View Source
const ( FlagListenAddr = "laddr" FlagPrimary = "primary" FlagPrimaryShort = "p" FlagWitness = "witnesses" FlagWitnessShort = "w" FlagHeight = "height" FlagHash = "hash" FlagDir = "dir" FlagDirShort = "d" FlagLogLevel = "log-level" FlagSeq = "sequential" FlagTrustLevel = "trust-level" FlagMaxConn = "max-open-connections" FlagTrustPeriod = "trusting-period" FlagStartTimeout = "start-timeout" FlagTLSCertFile = "tls-cert-file" FlagTLSCertFileShort = "c" FlagTLSKeyFile = "tls-key-file" FlagTLSKeyFileShort = "k" )
Variables ¶
View Source
var LightCmd = &cobra.Command{ Use: "light [chainID]", Short: "Run a light client proxy server, verifying Tendermint rpc", Long: `Run a light client proxy server, verifying Tendermint rpc. All calls that can be tracked back to a block header by a proof will be verified before passing them back to the caller. Other than that, it will present the same interface as a full Tendermint node. Furthermore to the chainID, a fresh instance of a light client will need a primary RPC address, a trusted hash and height and witness RPC addresses (if not using sequential verification). To restart the node, thereafter only the chainID is required. When /abci_query is called, the Merkle key path format is: /{store name}/{key} Please verify with your application that this Merkle key format is used (true for applications built w/ Cosmos SDK). `, RunE: runProxy, Args: cobra.ExactArgs(1), Example: `dcld light dcltestnet -p http://52.57.29.196:26657 -w http://public-seed-node.cosmoshub.certus.one:26657 --height 962118 --hash 28B97BE9F6DE51AC69F70E0B7BFD7E5C9CD1A595B7DC31AFF27C50D4948020CD`, }
LightCmd represents the base command when called without any subcommands.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func NewRootCmd ¶
func NewRootCmd( appName, accountAddressPrefix, defaultNodeHome, defaultChainID string, moduleBasics module.BasicManager, buildApp cosmoscmd.AppBuilder, options ...Option, ) (*cobra.Command, cosmoscmd.EncodingConfig)
NewRootCmd creates a new root command for a Cosmos SDK application.
Types ¶
type Option ¶
type Option func(*rootOptions)
Option configures root command option.
func CustomizeStartCmd ¶
CustomizeStartCmd accepts a handler to customize the start command.
Click to show internal directories.
Click to hide internal directories.