loadbot

package
v0.0.0-...-697f13e Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GasForTransferWithComment = 110000

110k gas for stable token transfer is pretty reasonable. It's just under 100k in practice

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, cfg *Config) error

Start will start loads bots

Types

type Config

type Config struct {
	ChainID               *big.Int
	Accounts              []env.Account
	Amount                *big.Int
	TransactionsPerSecond int
	Clients               []*ethclient.Client
	Verbose               bool
	MaxPending            uint64
	SkipGasEstimation     bool
	MixFeeCurrency        bool
}

Config represent the load bot run configuration

type LoadGenerator

type LoadGenerator struct {
	MaxPending uint64
	Pending    uint64
	PendingMu  sync.Mutex
}

LoadGenerator keeps track of in-flight transactions

Jump to

Keyboard shortcuts

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