From 944c44ed745103d660a668b4f81bf4d748b26632 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Mon, 25 Apr 2016 11:12:03 -0400 Subject: [PATCH] bitcoind: return selected set of info for getinfo --- lib/services/bitcoind.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index e3314b7a..c79bde47 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -1631,8 +1631,20 @@ Bitcoin.prototype.getInfo = function(callback) { return callback(self._wrapRPCError(err)); } var result = response.result; - result.network = self.node.getNetworkName(); - callback(null, result); + var info = { + version: result.version, + protocolversion: result.protocolversion, + blocks: result.blocks, + timeoffset: result.timeoffset, + connections: result.connections, + proxy: result.proxy, + difficulty: result.difficulty, + testnet: result.testnet, + relayfee: result.relayfee, + errors: result.errors, + network: self.node.getNetworkName() + }; + callback(null, info); }); };