fixed version for go impl
This commit is contained in:
10
lib/node.js
10
lib/node.js
@@ -21,7 +21,15 @@ var INSTANCE_NAME,
|
||||
if(process.env.NODE_ENV === 'production')
|
||||
{
|
||||
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
|
||||
ETH_VERSION = shelljs.exec('eth -V', {silent: true}).output;
|
||||
|
||||
if(ETH_IMPLEMENTATION === 'Go')
|
||||
{
|
||||
ETH_VERSION = shelljs.exec('ethereum -version', {silent: true}).output;
|
||||
}
|
||||
else
|
||||
{
|
||||
ETH_VERSION = shelljs.exec('eth -V', {silent: true}).output;
|
||||
}
|
||||
}
|
||||
|
||||
var socket = new Socket(process.env.WS_SERVER || 'ws://localhost:3000');
|
||||
|
||||
Reference in New Issue
Block a user