refactoring

This commit is contained in:
cubedro 2015-03-27 13:56:11 +02:00
parent 399712168c
commit 0e76e169ca
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ var ETH_VERSION,
API_VERSION;
var INSTANCE_NAME = process.env.INSTANCE_NAME;
web3.setProvider(new web3.providers.HttpProvider('http://' + (process.env.RPC_HOST || 'localhost') + ':' + (process.env.RPC_PORT || '8545')));
web3.setProvider(new web3.providers.HttpProvider('http://' + (process.env.RPC_HOST || 'localhost') + ':' + (process.env.RPC_PORT || '8080')));
Socket = Primus.createSocket({
transformer: 'websockets',
@ -42,7 +42,7 @@ function Node()
API_VERSION = web3.version.api;
}
catch (err) {
console.error("couldn't get Version");
console.error("Couldn't get version");
}
this.info = {
@ -56,7 +56,7 @@ function Node()
this.id = _.camelCase(this.info.name);
console.log(this.info);
console.info(this.info);
this.stats = {
active: false,