devtests

package
v0.26.0-alpha.28 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevNode

func NewDevNode(faucet common.Address) (*node.Node, error)

NewDevNode returns node with clieque engine and prefunded accounts.

func StartWithMiner

func StartWithMiner(stack *node.Node) error

StartWithMiner starts node with eth service and a miner.

Types

type DevNodeSuite

type DevNodeSuite struct {
	suite.Suite

	Remote            *rpc.Client
	Eth               *ethclient.Client
	Local             *statusrpc.Client
	DevAccount        *ecdsa.PrivateKey
	DevAccountAddress common.Address
	// contains filtered or unexported fields
}

DevNodeSuite provides convenient wrapper for starting node with clique backend for mining.

func (*DevNodeSuite) SetupTest

func (s *DevNodeSuite) SetupTest()

SetupTest creates clique node and status node with an rpc connection to a clique node.

func (*DevNodeSuite) TearDownTest

func (s *DevNodeSuite) TearDownTest()

TearDownTest stops status node and clique node.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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