Versions in this module Expand all Collapse all v1 v1.10.16 Jun 3, 2022 Changes in this version + type Backend interface + BlockChain func() *core.BlockChain + StateAtBlock func(block *types.Block, reexec uint64, base *state.StateDB, checkLive bool, ...) (statedb *state.StateDB, err error) + TxPool func() *core.TxPool + type Config struct + Etherbase common.Address + ExtraData hexutil.Bytes + GasCeil uint64 + GasFloor uint64 + GasPrice *big.Int + Notify []string + NotifyFull bool + 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) GetSealingBlock(parent common.Hash, timestamp uint64, coinbase common.Address, ...) (*types.Block, error) + 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) PendingBlockAndReceipts() (*types.Block, types.Receipts) + func (miner *Miner) SetEtherbase(addr common.Address) + func (miner *Miner) SetExtra(extra []byte) error + func (miner *Miner) SetGasCeil(ceil uint64) + 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