commit
3c44d5da1f
2
app.js
2
app.js
@ -1,4 +1,6 @@
|
|||||||
var sleep = require('sleep');
|
var sleep = require('sleep');
|
||||||
|
|
||||||
|
if(process.env.NODE_ENV === 'production')
|
||||||
sleep.sleep(15);
|
sleep.sleep(15);
|
||||||
|
|
||||||
var nodeModel = require('./lib/node');
|
var nodeModel = require('./lib/node');
|
||||||
|
@ -15,6 +15,7 @@ var ETH_VERSION,
|
|||||||
NET_VERSION,
|
NET_VERSION,
|
||||||
PROTOCOL_VERSION,
|
PROTOCOL_VERSION,
|
||||||
API_VERSION;
|
API_VERSION;
|
||||||
|
|
||||||
var INSTANCE_NAME = process.env.INSTANCE_NAME;
|
var INSTANCE_NAME = process.env.INSTANCE_NAME;
|
||||||
|
|
||||||
var Contract = null;
|
var Contract = null;
|
||||||
@ -58,7 +59,6 @@ function Node()
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.info = {
|
this.info = {
|
||||||
client: pjson.version,
|
|
||||||
name: INSTANCE_NAME || (process.env.EC2_INSTANCE_ID || os.hostname()),
|
name: INSTANCE_NAME || (process.env.EC2_INSTANCE_ID || os.hostname()),
|
||||||
contact: (process.env.CONTACT_DETAILS || ""),
|
contact: (process.env.CONTACT_DETAILS || ""),
|
||||||
node: ETH_VERSION,
|
node: ETH_VERSION,
|
||||||
@ -68,6 +68,7 @@ function Node()
|
|||||||
port: (process.env.LISTENING_PORT || 30303),
|
port: (process.env.LISTENING_PORT || 30303),
|
||||||
os: os.platform(),
|
os: os.platform(),
|
||||||
os_v: os.release(),
|
os_v: os.release(),
|
||||||
|
client: pjson.version
|
||||||
};
|
};
|
||||||
|
|
||||||
this.id = _.camelCase(this.info.name);
|
this.id = _.camelCase(this.info.name);
|
||||||
|
@ -10,13 +10,13 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debounce": "^1.0.0",
|
"debounce": "^1.0.0",
|
||||||
"debug": "~2.1.3",
|
"debug": "~2.1.3",
|
||||||
"web3": "0.2.8",
|
|
||||||
"lodash": "^3.6.0",
|
"lodash": "^3.6.0",
|
||||||
"primus": "^3.0.2",
|
"primus": "^3.0.2",
|
||||||
"primus-emit": "^0.1.2",
|
"primus-emit": "^0.1.2",
|
||||||
"primus-spark-latency": "^0.1.1",
|
"primus-spark-latency": "^0.1.1",
|
||||||
"shelljs": "^0.4.0",
|
"shelljs": "^0.4.0",
|
||||||
"sleep": "^2.0.0",
|
"sleep": "^2.0.0",
|
||||||
|
"web3": "0.2.8",
|
||||||
"ws": "^0.7.1"
|
"ws": "^0.7.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user