From eba9ce361e4ebccf860304a7013dc50cf1d682e6 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 19 Sep 2018 22:31:14 -0500 Subject: [PATCH] setupProxy should not be conditional on isDev --- lib/modules/blockchain_process/blockchain.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/modules/blockchain_process/blockchain.js b/lib/modules/blockchain_process/blockchain.js index 144d0516b..6bca2825b 100644 --- a/lib/modules/blockchain_process/blockchain.js +++ b/lib/modules/blockchain_process/blockchain.js @@ -182,10 +182,10 @@ Blockchain.prototype.run = function() { self.child.stderr.on('data', async (data) => { data = data.toString(); if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) { + if (self.config.proxy) { + await self.setupProxy(); + } if (self.isDev) { - if (self.config.proxy) { - await self.setupProxy(); - } self.createFundAndUnlockAccounts((err) => { // TODO: this is never called! if(err) console.error('Error creating, unlocking, and funding accounts', err);