types

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 2 Imported by: 13

Documentation

Index

Constants

View Source
const (
	FlagChainID   = "chain-id"
	FlagNode      = "node"
	FlagHeight    = "height"
	FlagNonce     = "nonce"
	FlagTrustNode = "trust-node"
	FlagMaxGas    = "max-gas"
	FlagJSONIndet = "indent"
	FlagNonceNode = "nonce-node"

	//qcp flag
	FlagQcp            = "qcp" //启用QCP模式,发送txQcp消息
	FlagQcpSigner      = "qcp-signer"
	FlagQcpSequence    = "qcp-seq"
	FlagQcpFrom        = "qcp-from"
	FlagQcpBlockHeight = "qcp-blockheight"
	FlagQcpTxIndex     = "qcp-txindex"
	FlagQcpExtends     = "qcp-extends"

	FlagListenAddr         = "listen"
	FlagMaxOpenConnections = "max-open"
	FlagRPCReadTimeout     = "read-timeout"
	FlagRPCWriteTimeout    = "write-timeout"

	FlagSigOnly = "sig-only"
	FlagOffline = "offline"
	FlagSigner  = "signer"

	FlagBroadcastMode      = "sync-mode"
	FlagGenerateOnly       = "generate-only"
	FlagPrintTx            = "print-tx"
	FlagResultOutPut       = "result"
	FlagResultOutPutAppend = "result-append"
)
View Source
const (
	DefaultMaxGas int64 = 2000000
)

Variables

View Source
var (
	LineBreak = &cobra.Command{Run: func(*cobra.Command, []string) {}}
)

LineBreak can be included in a command list to provide a blank line to help with readability

Functions

func GetCommands

func GetCommands(cmds ...*cobra.Command) []*cobra.Command

GetCommands adds common flags to query commands

func PostCommands

func PostCommands(cmds ...*cobra.Command) []*cobra.Command

PostCommands adds common flags for commands to post tx

func PostCustomMaxGasCommands added in v0.2.5

func PostCustomMaxGasCommands(cmds []*cobra.Command, defaultGases []int64) []*cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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