miner

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain added in v1.3.0

type Chain interface {
	CurrentBlock() *types.Block
	SubscribeNewBlock(ch chan *types.Block) subscribe.Subscription
	MineBlock(*consensus.BlockMaterial)
}

type MineConfig

type MineConfig struct {
	SleepTime int64
	Timeout   int64
}

type Miner

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

func New

func New(cfg MineConfig, chain Chain, dm *deputynode.Manager, extra []byte) *Miner

func (*Miner) Close

func (m *Miner) Close()

func (*Miner) GetMinerAddress

func (m *Miner) GetMinerAddress() common.Address

func (*Miner) IsMining

func (m *Miner) IsMining() bool

func (*Miner) Start

func (m *Miner) Start()

func (*Miner) Stop

func (m *Miner) Stop()

Jump to

Keyboard shortcuts

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