sleep only in production

This commit is contained in:
cubedro
2015-04-17 02:10:27 +03:00
parent 4f0fcae401
commit 13cf0be9a0
3 changed files with 6 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ var ETH_VERSION,
NET_VERSION,
PROTOCOL_VERSION,
API_VERSION;
var INSTANCE_NAME = process.env.INSTANCE_NAME;
var Contract = null;
@@ -58,7 +59,6 @@ function Node()
}
this.info = {
client: pjson.version,
name: INSTANCE_NAME || (process.env.EC2_INSTANCE_ID || os.hostname()),
contact: (process.env.CONTACT_DETAILS || ""),
node: ETH_VERSION,
@@ -68,6 +68,7 @@ function Node()
port: (process.env.LISTENING_PORT || 30303),
os: os.platform(),
os_v: os.release(),
client: pjson.version
};
this.id = _.camelCase(this.info.name);