miner: pass workers option to miner

This commit is contained in:
Node 2017-07-27 23:42:22 +04:00
parent 8036c301a1
commit d809f66bf8
No known key found for this signature in database
GPG Key ID: 8E1B4DC29040BD90

View File

@ -36,7 +36,7 @@ function Miner(options) {
this.options = new MinerOptions(options);
this.network = this.options.network;
this.logger = this.options.logger.context('miner');
this.workers = null;
this.workers = this.options.workers;
this.chain = this.options.chain;
this.mempool = this.options.mempool;
this.addresses = this.options.addresses;