Versions in this module Expand all Collapse all v1 v1.0.0 Dec 7, 2020 Changes in this version + type Backend interface + BlockChain func() *core.BlockChain + TxPool func() *core.TxPool + type Config struct + Etherbase common.Address + ExtraData hexutil.Bytes + GasCeil uint64 + GasFloor uint64 + GasPrice *big.Int + Notify []string + Noverify bool + Recommit time.Duration + type Miner struct + func New(eth Backend, config *Config, chainConfig *params.ChainConfig, ...) *Miner + func (miner *Miner) Close() + func (miner *Miner) HashRate() uint64 + func (miner *Miner) Mining() bool + func (miner *Miner) Pending() (*types.Block, *state.StateDB) + func (miner *Miner) PendingBlock() *types.Block + func (miner *Miner) SetEtherbase(addr common.Address) + func (miner *Miner) SetExtra(extra []byte) error + func (miner *Miner) SetRecommitInterval(interval time.Duration) + func (miner *Miner) Start(coinbase common.Address) + func (miner *Miner) Stop() + func (self *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription