From 3cc54ee9ef1965dd0be0f7ebd0fb9649f8689a30 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 2 Apr 2015 23:52:55 +0300 Subject: [PATCH] added back pending transactions --- lib/node.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/node.js b/lib/node.js index 95a5b05..71b5b41 100644 --- a/lib/node.js +++ b/lib/node.js @@ -307,11 +307,11 @@ Node.prototype.getStats = function() if(this.stats.block.number > 0) this.getLatestBlocks(); - // try { - // this.stats.pending = web3.eth.getBlockTransactionCount('pending'); - // } catch (err) { - // console.error("getBlockTransactionCount('pending'):", err); - // } + try { + this.stats.pending = web3.eth.getBlockTransactionCount('pending'); + } catch (err) { + console.error("getBlockTransactionCount('pending'):", err); + } this.stats.mining = web3.eth.mining; this.stats.gasPrice = web3.eth.gasPrice.toString(10); this.stats.listening = web3.net.listening;