solo

package
v0.0.0-...-75aef46 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Communicator

type Communicator struct {
}

Communicator in solo is a fake one just for api handler

func (Communicator) PeersStats

func (comm Communicator) PeersStats() []*comm.PeerStats

PeersStats returns nil solo doesn't join p2p network

type Solo

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

Solo mode is the standalone client without p2p server

func New

func New(
	chain *chain.Chain,
	stateCreator *state.Creator,
	logDB *logdb.LogDB,
	txPool *txpool.TxPool,
	gasLimit uint64,
	onDemand bool,
) *Solo

New returns Solo instance

func (*Solo) Run

func (s *Solo) Run(ctx context.Context) error

Run runs the packer for solo

Jump to

Keyboard shortcuts

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