utils

package
v12.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: LGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRandomBytes

func GenRandomBytes(size int) []byte

GenRandomBytes returns generated random bytes array, with specified length.

func GetNextPortAvailable

func GetNextPortAvailable() int

GetNextPortAvailable check if port is available and return it. If not available, it will check the next port.

func Keccak256

func Keccak256(input string) string

Keccak256 is function used in testing only, it has the dedicated implementation for purpose of double-check result

func RandomPositiveInt64

func RandomPositiveInt64() int64

RandomPositiveInt64 returns a random int64, value >= 0.

func StartTendermintNode

func StartTendermintNode(app abci.Application, genesis *tmtypes.GenesisDoc, db cdb.DB, validatorPrivKey tmcrypto.PrivKey, logger log.Logger) (tendermintNode *nm.Node, rpcPort int, tempFiles []string)

StartTendermintNode starts a Tendermint node for the given ABCI Application, used for testing purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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