bombard

package
v0.0.0-...-95bd726 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConsecutiveTransactions

func CreateConsecutiveTransactions(utxo *avax.UTXO, numTxs, amount, txFee uint64, privateKey *crypto.PrivateKeySECP256K1R) ([][]byte, []ids.ID, error)

CreateConsecutiveTransactions returns a string of [numTxs] sending [utxo] back and forth assumes that [privateKey] is the sole owner of [utxo]

func CreateSingleUTXOTx

func CreateSingleUTXOTx(utxo *avax.UTXO, inputAmount, outputAmount uint64, address ids.ShortID, privateKey *crypto.PrivateKeySECP256K1R, codecManager codec.Manager) (*avm.Tx, error)

CreateSingleUTXOTx returns a transaction spending an individual utxo owned by [privateKey]

func NewBombardExecutor

func NewBombardExecutor(clients []*apis.Client, numTxs, txFee uint64, acceptanceTimeout time.Duration) tester.CaminoTester

NewBombardExecutor returns a new bombard test bombardExecutor

Types

type StakingNetworkBombardTest

type StakingNetworkBombardTest struct {
	ImageName         string
	NumTxs            uint64
	TxFee             uint64
	AcceptanceTimeout time.Duration
}

StakingNetworkBombardTest funds individual clients with a starting UTXO for each and then creates a string of transactions to send to each one based off of the original UTXO. Then it adds two nodes to ensure that they can bootstrap the new data on the X chain.

func (StakingNetworkBombardTest) GetExecutionTimeout

func (test StakingNetworkBombardTest) GetExecutionTimeout() time.Duration

GetExecutionTimeout implements the Kurtosis Test interface

func (StakingNetworkBombardTest) GetNetworkLoader

func (test StakingNetworkBombardTest) GetNetworkLoader() (networks.NetworkLoader, error)

GetNetworkLoader implements the Kurtosis Test interface

func (StakingNetworkBombardTest) GetSetupBuffer

func (test StakingNetworkBombardTest) GetSetupBuffer() time.Duration

GetSetupBuffer implements the Kurtosis Test interface

func (StakingNetworkBombardTest) Run

func (test StakingNetworkBombardTest) Run(network networks.Network, context testsuite.TestContext)

Run implements the Kurtosis Test interface

Jump to

Keyboard shortcuts

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