refactoring

This commit is contained in:
cubedro 2015-03-27 13:56:11 +02:00
parent 399712168c
commit 0e76e169ca

View File

@ -13,7 +13,7 @@ var ETH_VERSION,
API_VERSION; API_VERSION;
var INSTANCE_NAME = process.env.INSTANCE_NAME; 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({ Socket = Primus.createSocket({
transformer: 'websockets', transformer: 'websockets',
@ -42,7 +42,7 @@ function Node()
API_VERSION = web3.version.api; API_VERSION = web3.version.api;
} }
catch (err) { catch (err) {
console.error("couldn't get Version"); console.error("Couldn't get version");
} }
this.info = { this.info = {
@ -56,7 +56,7 @@ function Node()
this.id = _.camelCase(this.info.name); this.id = _.camelCase(this.info.name);
console.log(this.info); console.info(this.info);
this.stats = { this.stats = {
active: false, active: false,