testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Addr1 is a testing address
	Addr1 = testaddress.Addrinfo["alfa"].String()
	// PubKey1 is a testing public key
	PubKey1 = testaddress.Keyinfo["alfa"].PubKey
	// Addr2 is a testing address
	Addr2 = testaddress.Addrinfo["bravo"].String()
	// PubKey2 is testing public key
	PubKey2 = testaddress.Keyinfo["bravo"].PubKey
	// RewardAddr1 is a testing reward address
	RewardAddr1 = testaddress.Addrinfo["charlie"].String()
	// RewardAddr2 is a testing reward address
	RewardAddr2 = testaddress.Addrinfo["delta"].String()
	// RewardAddr3 is a testing reward address
	RewardAddr3 = testaddress.Addrinfo["echo"].String()
)

Functions

func BuildCompleteBlock

func BuildCompleteBlock(height uint64, nextEpochHeight uint64) (*block.Block, error)

BuildCompleteBlock builds a complete block

func BuildEmptyBlock

func BuildEmptyBlock(height uint64) (*block.Block, error)

BuildEmptyBlock builds an empty block

func CleanupDatabase

func CleanupDatabase(t *testing.T, connectStr string, dbName string)

CleanupDatabase detects the existence of a MySQL database and drops it if found

Types

This section is empty.

Jump to

Keyboard shortcuts

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