Versions in this module Expand all Collapse all v1 v1.2.2 Apr 7, 2024 Changes in this version + const TxGas + type Backend interface + BlockChain func() *chain.BlockChain + TxPool func() *chain.TxPool + type Config struct + Etherbase common.Address + ExtraData hexutil.Bytes + GasCeil uint64 + GasFloor uint64 + GasPrice *big.Int + Recommit time.Duration + type Miner struct + func New(eth Backend, config *Config, chainConfig *params2.ChainConfig, ...) *Miner + func (miner *Miner) Close() + func (miner *Miner) Mining() bool + func (miner *Miner) Pending() (*types.Block, *state.StateDB) + func (miner *Miner) PendingBlock() *types.Block + func (miner *Miner) SetExtra(extra []byte) error + func (miner *Miner) SetTxFeeRecipient(addr common.Address) + func (miner *Miner) SetValidator(addr common.Address) + func (miner *Miner) Start(validator common.Address, txFeeRecipient common.Address) + func (miner *Miner) Stop() + func (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription