miner

package
v0.0.0-...-91a82d4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: LGPL-3.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CoinBaseAddr string `mapstructure:"miner-coinbase"`
	MinerThreads int    `mapstructure:"miner-threads"`
	ExtraData    string `mapstructure:"miner-extradata"`
}

type UMiner

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

func NewUranusMiner

func NewUranusMiner(mux *feed.TypeMux, config *params.ChainConfig, minerCfg *Config, uranus consensus.IUranus, engine consensus.Engine, db db.Database) *UMiner

func (*UMiner) GetCoinBase

func (m *UMiner) GetCoinBase() utils.Address

func (*UMiner) PendingBlock

func (m *UMiner) PendingBlock() *types.Block

func (*UMiner) SetCoinBase

func (m *UMiner) SetCoinBase(addr utils.Address)

func (*UMiner) Start

func (m *UMiner) Start() error

func (*UMiner) Stop

func (m *UMiner) Stop()

type Work

type Work struct {
	Height uint64
	Block  *types.Block
	// contains filtered or unexported fields
}

func NewWork

func NewWork(blk *types.Block, height uint64, state *state.StateDB, dposContext *types.DposContext, quit chan struct{}) *Work

Jump to

Keyboard shortcuts

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