setupProxy should not be conditional on isDev

This commit is contained in:
Michael Bradley, Jr 2018-09-19 22:31:14 -05:00
parent 917757b04c
commit eba9ce361e
1 changed files with 3 additions and 3 deletions

View File

@ -182,10 +182,10 @@ Blockchain.prototype.run = function() {
self.child.stderr.on('data', async (data) => { self.child.stderr.on('data', async (data) => {
data = data.toString(); data = data.toString();
if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) { if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
if (self.config.proxy) {
await self.setupProxy();
}
if (self.isDev) { if (self.isDev) {
if (self.config.proxy) {
await self.setupProxy();
}
self.createFundAndUnlockAccounts((err) => { self.createFundAndUnlockAccounts((err) => {
// TODO: this is never called! // TODO: this is never called!
if(err) console.error('Error creating, unlocking, and funding accounts', err); if(err) console.error('Error creating, unlocking, and funding accounts', err);