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;