Versions in this module Expand all Collapse all v0 v0.22.2 May 31, 2022 Changes in this version + func DisableLog() + func UseLogger(logger btclog.Logger) + type CPUMiner struct + func New(cfg *Config) *CPUMiner + func (m *CPUMiner) GenerateNBlocks(n uint32) ([]*chainhash.Hash, error) + func (m *CPUMiner) HashesPerSecond() float64 + func (m *CPUMiner) IsMining() bool + func (m *CPUMiner) NumWorkers() int32 + func (m *CPUMiner) SetNumWorkers(numWorkers int32) + func (m *CPUMiner) Start() + func (m *CPUMiner) Stop() + type Config struct + BlockTemplateGenerator *mining.BlkTmplGenerator + ChainParams *chaincfg.Params + ConnectedCount func() int32 + IsCurrent func() bool + MiningAddrs []btcutil.Address + ProcessBlock func(*btcutil.Block, blockchain.BehaviorFlags) (bool, error)