refactoring
This commit is contained in:
parent
399712168c
commit
0e76e169ca
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user