fix when using mining script
This commit is contained in:
parent
dcc7b44377
commit
18f60768f9
|
@ -213,7 +213,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();
|
||||
}
|
||||
|
|
|
@ -69,8 +69,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) => {
|
||||
|
|
Loading…
Reference in New Issue