miner

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Miner

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

func NewMiner

func NewMiner(cfgFile string, povEngine *pov.PoVEngine) *Miner

func (*Miner) GetConfig

func (miner *Miner) GetConfig() *config.Config

func (*Miner) GetLogger

func (miner *Miner) GetLogger() *zap.SugaredLogger

func (*Miner) GetPovEngine

func (miner *Miner) GetPovEngine() *pov.PoVEngine

func (*Miner) GetSyncState

func (miner *Miner) GetSyncState() common.SyncState

func (*Miner) Init

func (miner *Miner) Init() error

func (*Miner) Start

func (miner *Miner) Start() error

func (*Miner) Stop

func (miner *Miner) Stop() error

type PovMinerAlgoBlock added in v1.3.0

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

type PovWorker

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

func NewPovWorker

func NewPovWorker(miner *Miner) *PovWorker

func (*PovWorker) GetChain

func (w *PovWorker) GetChain() *pov.PovBlockChain

func (*PovWorker) GetConfig

func (w *PovWorker) GetConfig() *config.Config

func (*PovWorker) GetMiningInfo added in v1.3.0

func (w *PovWorker) GetMiningInfo(in interface{}, out interface{})

func (*PovWorker) GetPovConsensus

func (w *PovWorker) GetPovConsensus() pov.ConsensusPov

func (*PovWorker) GetTxPool

func (w *PovWorker) GetTxPool() *pov.PovTxPool

func (*PovWorker) GetWork added in v1.3.0

func (w *PovWorker) GetWork(in interface{}, out interface{})

func (*PovWorker) Init

func (w *PovWorker) Init() error

func (*PovWorker) OnEventRpcSyncCall added in v1.3.0

func (w *PovWorker) OnEventRpcSyncCall(name string, in interface{}, out interface{})

func (*PovWorker) Start

func (w *PovWorker) Start() error

func (*PovWorker) Stop

func (w *PovWorker) Stop() error

func (*PovWorker) SubmitWork added in v1.3.0

func (w *PovWorker) SubmitWork(in interface{}, out interface{})

Jump to

Keyboard shortcuts

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