testchain

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Node   *node.Node
	Client *ethclient.Client

	Ethereum *eth.Ethereum
	Faucet   *ecdsa.PrivateKey
	Signer   types.Signer
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend() (*Backend, error)

func (*Backend) GenerateBlocks

func (b *Backend) GenerateBlocks(n int, start uint64, gen func(int, *core.BlockGen)) []*types.Block

GenerateBlocks generate n blocks starting from genesis.

func (*Backend) Stop

func (b *Backend) Stop() error

Jump to

Keyboard shortcuts

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