added back pending transactions

This commit is contained in:
cubedro 2015-04-02 23:52:55 +03:00
parent 716f2838ae
commit 3cc54ee9ef

View File

@ -307,11 +307,11 @@ Node.prototype.getStats = function()
if(this.stats.block.number > 0) if(this.stats.block.number > 0)
this.getLatestBlocks(); this.getLatestBlocks();
// try { try {
// this.stats.pending = web3.eth.getBlockTransactionCount('pending'); this.stats.pending = web3.eth.getBlockTransactionCount('pending');
// } catch (err) { } catch (err) {
// console.error("getBlockTransactionCount('pending'):", err); console.error("getBlockTransactionCount('pending'):", err);
// } }
this.stats.mining = web3.eth.mining; this.stats.mining = web3.eth.mining;
this.stats.gasPrice = web3.eth.gasPrice.toString(10); this.stats.gasPrice = web3.eth.gasPrice.toString(10);
this.stats.listening = web3.net.listening; this.stats.listening = web3.net.listening;