Versions in this module Expand all Collapse all v1 v1.0.1 Mar 1, 2020 Changes in this version + type Backend interface + BlockChain func() *core.BlockChain + TxPool func() *core.TxPool + type Miner struct + func New(eth Backend, config *params.ChainConfig, mux *event.TypeMux, ...) *Miner + func (self *Miner) Close() + func (self *Miner) HashRate() uint64 + func (self *Miner) Mining() bool + func (self *Miner) Pending() (*types.Block, *state.StateDB) + func (self *Miner) PendingBlock() *types.Block + func (self *Miner) SetCoinbase(addr common.Address) + func (self *Miner) SetExtra(extra []byte) error + func (self *Miner) Start(coinbase common.Address) + func (self *Miner) Stop()