Versions in this module Expand all Collapse all v1 v1.12.6 Jun 4, 2024 Changes in this version + var DefaultConfig = Config + type Backend interface + BlockChain func() *core.BlockChain + TxPool func() *txpool.TxPool + type BuildPayloadArgs struct + FeeRecipient common.Address + Parent common.Hash + Random common.Hash + Timestamp uint64 + Withdrawals types.Withdrawals + func (args *BuildPayloadArgs) Id() engine.PayloadID + type Config struct + Etherbase common.Address + ExtraData hexutil.Bytes + GasCeil uint64 + GasFloor uint64 + GasPrice *big.Int + NewPayloadTimeout time.Duration + Recommit time.Duration + type Miner struct + func New(eth Backend, config *Config, chainConfig *params.ChainConfig, ...) *Miner + func (miner *Miner) BuildPayload(args *BuildPayloadArgs) (*Payload, error) + 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) 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() + func (miner *Miner) Stop() + func (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription + type Payload struct + func (payload *Payload) Resolve() *engine.ExecutionPayloadEnvelope + func (payload *Payload) ResolveEmpty() *engine.ExecutionPayloadEnvelope + func (payload *Payload) ResolveFull() *engine.ExecutionPayloadEnvelope