mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-23 21:58:48 +00:00
fix when using mining script
This commit is contained in:
parent
f29760e051
commit
e7eee572f4
@ -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();
|
||||
}
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user