Versions in this module Expand all Collapse all v1 v1.101106.1 Jul 13, 2023 Changes in this version + var DefaultConfig = Config + type Backend interface + BlockChain func() *core.BlockChain + TxPool func() *txpool.TxPool + type BackendWithHistoricalState interface + StateAtBlock func(ctx context.Context, block *types.Block, reexec uint64, base *state.StateDB, ...) (*state.StateDB, tracers.StateReleaseFunc, error) + type BuildPayloadArgs struct + FeeRecipient common.Address + GasLimit *uint64 + NoTxPool bool + Parent common.Hash + Random common.Hash + Timestamp uint64 + Transactions []*types.Transaction + 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 + Notify []string + NotifyFull bool + Noverify bool + Recommit time.Duration + RollupComputePendingBlock bool + 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) 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) 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