commit
2bd052bd2e
@ -13,6 +13,7 @@ var Primus = require('primus'),
|
|||||||
|
|
||||||
var ETH_VERSION,
|
var ETH_VERSION,
|
||||||
NET_VERSION,
|
NET_VERSION,
|
||||||
|
PROTOCOL_VERSION,
|
||||||
API_VERSION;
|
API_VERSION;
|
||||||
var INSTANCE_NAME = process.env.INSTANCE_NAME;
|
var INSTANCE_NAME = process.env.INSTANCE_NAME;
|
||||||
|
|
||||||
@ -49,6 +50,7 @@ function Node()
|
|||||||
try {
|
try {
|
||||||
ETH_VERSION = web3.version.client;
|
ETH_VERSION = web3.version.client;
|
||||||
NET_VERSION = web3.version.network;
|
NET_VERSION = web3.version.network;
|
||||||
|
PROTOCOL_VERSION = web3.toDecimal(web3.version.ethereum);
|
||||||
API_VERSION = web3.version.api;
|
API_VERSION = web3.version.api;
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
@ -61,6 +63,7 @@ function Node()
|
|||||||
contact: (process.env.CONTACT_DETAILS || ""),
|
contact: (process.env.CONTACT_DETAILS || ""),
|
||||||
node: ETH_VERSION,
|
node: ETH_VERSION,
|
||||||
net: NET_VERSION,
|
net: NET_VERSION,
|
||||||
|
protocol: PROTOCOL_VERSION,
|
||||||
api: API_VERSION,
|
api: API_VERSION,
|
||||||
port: (process.env.LISTENING_PORT || 30303),
|
port: (process.env.LISTENING_PORT || 30303),
|
||||||
os: os.platform(),
|
os: os.platform(),
|
||||||
|
Loading…
Reference in New Issue
Block a user