speedtest

package
v0.54.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 13 Imported by: 1

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)

Jump to

Keyboard shortcuts

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