mirror of https://github.com/embarklabs/embark.git
Format changes
This commit is contained in:
commit
16ab8136a2
|
@ -76,7 +76,9 @@ var Blockchain = function(options) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Blockchain.prototype.setupProxy = function() {
|
Blockchain.prototype.setupProxy = function() {
|
||||||
if(this.blockchainConfig.proxy){
|
if (this.blockchainConfig.proxy === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const proxy = require('../../core/proxy');
|
const proxy = require('../../core/proxy');
|
||||||
const Ipc = require('../../core/ipc');
|
const Ipc = require('../../core/ipc');
|
||||||
|
|
||||||
|
@ -86,7 +88,6 @@ Blockchain.prototype.setupProxy = function(){
|
||||||
proxy.serve(ipcObject, this.config.wsHost, this.config.wsPort, true);
|
proxy.serve(ipcObject, this.config.wsHost, this.config.wsPort, true);
|
||||||
this.config.rpcPort += constants.blockchain.servicePortOnProxy;
|
this.config.rpcPort += constants.blockchain.servicePortOnProxy;
|
||||||
this.config.wsPort += constants.blockchain.servicePortOnProxy;
|
this.config.wsPort += constants.blockchain.servicePortOnProxy;
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Blockchain.prototype.runCommand = function(cmd, options, callback) {
|
Blockchain.prototype.runCommand = function(cmd, options, callback) {
|
||||||
|
|
|
@ -76,9 +76,9 @@ class ConsoleListener {
|
||||||
gasUsed = utils.hexToNumber(gasUsed);
|
gasUsed = utils.hexToNumber(gasUsed);
|
||||||
blockNumber = utils.hexToNumber(blockNumber);
|
blockNumber = utils.hexToNumber(blockNumber);
|
||||||
|
|
||||||
this.logger.debug(`${name}.${functionName}(${paramString}) : ${transactionHash} | gas:${gasUsed} | blk:${blockNumber} | status:${status}`);
|
this.logger.info(`Blockchain>`.underline + ` ${name}.${functionName}(${paramString})`.bold + ` | ${transactionHash} | gas:${gasUsed} | blk:${blockNumber} | status:${status}`);
|
||||||
} else {
|
} else {
|
||||||
this.logger.debug(JSON.stringify(request));
|
this.logger.info(JSON.stringify(request));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue