code: function CPUMiner(miner) {
    if (!(this instanceof CPUMiner))
      return new CPUMiner(miner);
  
    AsyncObject.call(this);
  
    this.miner = miner;
    this.network = this.miner.network;
    this.logger = this.miner.logger.context('cpuminer');
    this.workers = this.miner.workers;
    this.chain = this.miner.chain;
    this.locker = new Lock();
    this.locker2 = new Lock();
  
    this.running = false;
    this.stopping = false;
    this.own = false;
    this.job = null;
    this.stopJob = null;
  
    this._init();
  }
docs: CPU miner.
  @alias module:mining.CPUMiner
  @constructor
  @param {Miner} miner
  @emits CPUMiner#block
  @emits CPUMiner#status