Versions in this module Expand all Collapse all v1 v1.10.2 Mar 25, 2021 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) DisablePreseal() + func (miner *Miner) EnablePreseal() + 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 (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription