code: function Miner(options) {
    if (!(this instanceof Miner))
      return new Miner(options);
  
    AsyncObject.call(this);
  
    this.options = new MinerOptions(options);
    this.network = this.options.network;
    this.logger = this.options.logger.context('miner');
    this.workers = this.options.workers;
    this.chain = this.options.chain;
    this.mempool = this.options.mempool;
    this.addresses = this.options.addresses;
    this.locker = this.chain.locker;
    this.cpu = new CPUMiner(this);
  
    this.address = null;
  
    this.init();
  }
docs: A WMCoin miner and block generator.
  @alias module:mining.Miner
  @constructor
  @param {Object} options