workers: minor.
This commit is contained in:
parent
3a9a0d9840
commit
31c4b4622a
@ -35,7 +35,7 @@ function Workers(options) {
|
||||
EventEmitter.call(this);
|
||||
|
||||
this.uid = 0;
|
||||
this.size = options.size || Workers.CORES;
|
||||
this.size = Math.max(2, options.size || Workers.CORES);
|
||||
this.timeout = options.timeout || 60000;
|
||||
this.network = bcoin.network.get(options.network);
|
||||
this.children = [];
|
||||
@ -208,6 +208,7 @@ Workers.prototype.mine = function mine(attempt, callback) {
|
||||
* Represents a worker.
|
||||
* @exports Worker
|
||||
* @constructor
|
||||
* @param {Workers} pool
|
||||
* @param {Number} id - Worker ID.
|
||||
* @property {Number} id
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user