Versions in this module Expand all Collapse all v0 v0.0.1 Jan 13, 2023 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 + func (args *BuildPayloadArgs) Id() beacon.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 + 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(coinbase common.Address) + func (miner *Miner) Stop() + func (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription + type Payload struct + func (payload *Payload) Resolve() *beacon.ExecutableDataV1 + func (payload *Payload) ResolveEmpty() *beacon.ExecutableDataV1 + func (payload *Payload) ResolveFull() *beacon.ExecutableDataV1