From 4f0fcae4019ea5bca61be8555dc6df062e3e33d1 Mon Sep 17 00:00:00 2001 From: cubedro Date: Fri, 17 Apr 2015 01:25:47 +0300 Subject: [PATCH] added protocol version --- lib/node.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/node.js b/lib/node.js index cc8206c..cf1f8e9 100644 --- a/lib/node.js +++ b/lib/node.js @@ -13,6 +13,7 @@ var Primus = require('primus'), var ETH_VERSION, NET_VERSION, + PROTOCOL_VERSION, API_VERSION; var INSTANCE_NAME = process.env.INSTANCE_NAME; @@ -49,6 +50,7 @@ function Node() try { ETH_VERSION = web3.version.client; NET_VERSION = web3.version.network; + PROTOCOL_VERSION = web3.toDecimal(web3.version.ethereum); API_VERSION = web3.version.api; } catch (err) { @@ -61,6 +63,7 @@ function Node() contact: (process.env.CONTACT_DETAILS || ""), node: ETH_VERSION, net: NET_VERSION, + protocol: PROTOCOL_VERSION, api: API_VERSION, port: (process.env.LISTENING_PORT || 30303), os: os.platform(),