mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-12 23:05:07 +00:00
setupProxy should not be conditional on isDev
This commit is contained in:
parent
917757b04c
commit
eba9ce361e
@ -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.isDev) {
|
|
||||||
if (self.config.proxy) {
|
if (self.config.proxy) {
|
||||||
await self.setupProxy();
|
await self.setupProxy();
|
||||||
}
|
}
|
||||||
|
if (self.isDev) {
|
||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user