miner

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 10 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(cfg *config.Config, 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 PovMineBlock

type PovMineBlock struct {
	Header *types.PovHeader
	Body   *types.PovBody
	Block  *types.PovBlock
}

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) GetCoinbaseAccount

func (w *PovWorker) GetCoinbaseAccount() *types.Account

func (*PovWorker) GetConfig

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

func (*PovWorker) GetPovConsensus

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

func (*PovWorker) GetTxPool

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

func (*PovWorker) Init

func (w *PovWorker) Init() error

func (*PovWorker) Start

func (w *PovWorker) Start() error

func (*PovWorker) Stop

func (w *PovWorker) Stop() error

Jump to

Keyboard shortcuts

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