Versions in this module Expand all Collapse all v0 v0.1.0 May 8, 2018 Changes in this version + var HeaderExtra []byte + type Agent interface + GetHashRate func() int64 + SetReturnCh func(chan<- *Result) + Start func() + Stop func() + Work func() chan<- *Work + type CpuAgent struct + func NewCpuAgent(index int, pow pow.PoW) *CpuAgent + func (self *CpuAgent) GetHashRate() int64 + func (self *CpuAgent) Pow() pow.PoW + func (self *CpuAgent) SetReturnCh(ch chan<- *Result) + func (self *CpuAgent) Start() + func (self *CpuAgent) Stop() + func (self *CpuAgent) Work() chan<- *Work + type Miner struct + MinAcceptedGasPrice *big.Int + func New(eth core.Backend, config *core.ChainConfig, mux *event.TypeMux, pow pow.PoW) *Miner + func (m *Miner) SetGasPrice(price *big.Int) error + func (self *Miner) HashRate() (tot int64) + func (self *Miner) Mining() bool + func (self *Miner) Pending() (*types.Block, *state.StateDB) + func (self *Miner) Register(agent Agent) + func (self *Miner) SetEtherbase(addr common.Address) + func (self *Miner) Start(coinbase common.Address, threads int) + func (self *Miner) Stop() + func (self *Miner) Unregister(agent Agent) + type RemoteAgent struct + func NewRemoteAgent() *RemoteAgent + func (a *RemoteAgent) GetHashRate() (tot int64) + func (a *RemoteAgent) GetWork() ([3]string, error) + func (a *RemoteAgent) SetReturnCh(returnCh chan<- *Result) + func (a *RemoteAgent) Start() + func (a *RemoteAgent) Stop() + func (a *RemoteAgent) SubmitHashrate(id common.Hash, rate uint64) + func (a *RemoteAgent) SubmitWork(nonce uint64, hash common.Hash) (exists bool) + func (a *RemoteAgent) Work() chan<- *Work + type Result struct + Block *types.Block + Work *Work + type Work struct + Block *types.Block