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({