From 581e4e3ce5add7ca31cce9967a6b42035cd072a5 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 23 Aug 2016 06:42:31 -0700 Subject: [PATCH] env: minor. --- lib/bcoin/env.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/bcoin/env.js b/lib/bcoin/env.js index dad95e06..128cada5 100644 --- a/lib/bcoin/env.js +++ b/lib/bcoin/env.js @@ -170,19 +170,20 @@ function Environment() { this.account = this.wallet.Account; this.walletdb = require('./walletdb'); this.path = this.walletdb.Path; - this.provider = this.walletdb.Provider; this.peer = require('./peer'); this.pool = require('./pool'); this.miner = require('./miner'); this.minerblock = this.miner.MinerBlock; this.http = require('./http'); this.workers = require('./workers'); + this.sc = require('./sigcache'); - this.sigcache = require('./sigcache')(0); + this.sigcache = new this.sc(0); this.time = new this.timedata(); this.defaultLogger = new this.logger('none'); - this.useWorkers = false; this.workerPool = new this.workers(); + + this.useWorkers = false; this.master = null; this.set({