Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + var Log = cl.NewSubSystem("chain/mining/cpu", ll.DEFAULT) + func UseLogger(logger *cl.SubSystem) + type CPUMiner struct + func New(cfg *Config) *CPUMiner + func (m *CPUMiner) GenerateNBlocks(n uint32, algo string) ([]*chainhash.Hash, error) + func (m *CPUMiner) GetAlgo() (name string) + func (m *CPUMiner) HashesPerSecond() float64 + func (m *CPUMiner) IsMining() bool + func (m *CPUMiner) NumWorkers() int32 + func (m *CPUMiner) SetAlgo(name string) + func (m *CPUMiner) SetNumWorkers(numWorkers int32) + func (m *CPUMiner) Start() + func (m *CPUMiner) Stop() + type Config struct + Algo string + BlockTemplateGenerator *mining.BlkTmplGenerator + Blockchain *blockchain.BlockChain + ChainParams *chaincfg.Params + ConnectedCount func() int32 + IsCurrent func() bool + MiningAddrs []util.Address + NumThreads uint32 + ProcessBlock func(*util.Block, blockchain.BehaviorFlags) (bool, error)