Versions in this module Expand all Collapse all v0 v0.2.17 Dec 28, 2019 v0.2.15 Dec 28, 2019 Changes in this version + type CPUMiner struct + func New(cfg *Config) *CPUMiner + func (m *CPUMiner) GenerateNBlocks(workerNumber uint32, 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 *netparams.Params + ConnectedCount func() int32 + IsCurrent func() bool + MiningAddrs []util.Address + NumThreads uint32 + ProcessBlock func(*util.Block, blockchain.BehaviorFlags) (bool, error) + Solo bool