added back pending transactions
This commit is contained in:
parent
716f2838ae
commit
3cc54ee9ef
10
lib/node.js
10
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;
|
||||
|
Loading…
Reference in New Issue
Block a user