Documentation ¶
Overview ¶
Package miner implements Ethereum block creation and mining.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { BlockChain() *core.BlockChain TxPool() *core.TxPool }
Backend wraps all methods required for mining.
type Config ¶
type Config struct { Etherbase common.Address `toml:",omitempty"` // Public address for block mining rewards (default = first account) GasFloor uint64 // Target gas floor for mined blocks. GasCeil uint64 // Target gas ceiling for mined blocks. GasPrice *big.Int // Minimum gas price for mining a transaction ApricotPhase1GasLimit uint64 // Gas Limit for mined blocks as of Apricot Phase 1. }
Config is the configuration parameters of mining.
type Miner ¶
type Miner struct {
// contains filtered or unexported fields
}
func (*Miner) GenerateBlock ¶ added in v0.5.2
func (*Miner) SetEtherbase ¶
func (*Miner) SubscribeNewMinedBlockEvent ¶ added in v0.5.2
func (miner *Miner) SubscribeNewMinedBlockEvent() *event.TypeMuxSubscription
func (*Miner) SubscribePendingLogs ¶ added in v0.3.1
func (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription
SubscribePendingLogs starts delivering logs from pending transactions to the given channel.
Click to show internal directories.
Click to hide internal directories.