solo

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: LGPL-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 BFTEngine

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

BFTEngine is a fake bft engine for solo.

func NewBFTEngine

func NewBFTEngine(repo *chain.Repository) *BFTEngine

func (*BFTEngine) Finalized

func (engine *BFTEngine) Finalized() thor.Bytes32

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(
	repo *chain.Repository,
	stater *state.Stater,
	logDB *logdb.LogDB,
	txPool *txpool.TxPool,
	gasLimit uint64,
	onDemand bool,
	skipLogs bool,
	forkConfig thor.ForkConfig,
) *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