rpctest

package
v100.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(forceCreate ...bool) *cfg.Config

GetConfig returns a config for the test-2 cases as a singleton.

func MaxReqBatchSize

func MaxReqBatchSize(o *Options)

MaxReqBatchSize is an option to limit the maximum number of requests per batch.

func NewCometBFT

func NewCometBFT(app abci.Application, opts *Options) *nm.Node

NewCometBFT creates a new CometBFT server and sleeps forever.

func RecreateConfig

func RecreateConfig(o *Options)

RecreateConfig instructs the RPC test-2 to recreate the configuration each time, instead of treating it as a global singleton.

func StartCometBFT

func StartCometBFT(app abci.Application, opts ...func(*Options)) *nm.Node

StartCometBFT starts a test-2 CometBFT server in a go routine and returns when it is initialized.

func StopCometBFT

func StopCometBFT(node *nm.Node)

StopCometBFT stops a test-2 CometBFT server, waits until it's stopped and cleans up test-2/config files.

func SuppressStdout

func SuppressStdout(o *Options)

SuppressStdout is an option that tries to make sure the RPC test-2 CometBFT node doesn't log anything to stdout.

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options helps with specifying some parameters for our RPC testing for greater control.

Jump to

Keyboard shortcuts

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