added back pending transactions

This commit is contained in:
cubedro 2015-04-02 23:52:55 +03:00
parent 716f2838ae
commit 3cc54ee9ef
1 changed files with 5 additions and 5 deletions

View File

@ -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;