Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
func NewCmd( createAccount AccountCreator, generateTx GenerateTx, app servertypes.ABCI, cdc codec.Codec, defaultGenesis map[string]json.RawMessage, chainID string, genesisModifiers ...GenesisModifier, ) *cobra.Command
NewCmd returns a command that will run an execution test on your application. Balances and accounts are automatically added to the chain's state via AccountCreator. Your genesis will be modified when instantiating a validator set, so please only modify the genesis by supplying the GenesisModifier argument. IMPORTANT: When testing the limits of your application, use --verify-txs. If you fill up your blocks passed the allowed max gas or max bytes, txs will be ignored, and this can muddy your results. Once you've verified that your configuration is processing completely, you may remove the --verify-txs flag to get cleaner results.
Types ¶
type AccountCreator ¶
type AccountCreator func() (*authtypes.BaseAccount, sdk.Coins)
type GenerateTx ¶
type GenerateTx func() []byte
type GenesisModifier ¶
type GenesisModifier func(codec.Codec, map[string]json.RawMessage)
Click to show internal directories.
Click to hide internal directories.