diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index 86952fc2..7d4d244a 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -196,7 +196,7 @@ Blockchain.prototype.readyCallback = function() { this.onReadyCallback(); } - if (this.config.mineWhenNeeded) { + if (this.config.mineWhenNeeded && !this.isDev) { const GethMiner = require('./miner'); this.miner = new GethMiner(); } diff --git a/lib/core/proxy.js b/lib/core/proxy.js index 888790c2..b6bfb955 100644 --- a/lib/core/proxy.js +++ b/lib/core/proxy.js @@ -67,8 +67,8 @@ exports.serve = function(ipc, host, port, ws){ ws: ws }); - proxy.on('error', function () { - console.error(__("Error forwarding requests to blockchain/simulator")); + proxy.on('error', function (e) { + console.error(__("Error forwarding requests to blockchain/simulator"), e); }); proxy.on('proxyRes', (proxyRes) => { @@ -79,7 +79,7 @@ exports.serve = function(ipc, host, port, ws){ if(resBody){ parseResponse(ipc, resBody); } - }); + }); }); let server = http.createServer((req, res) => {