moved temp chian request in getStats method
This commit is contained in:
parent
200a581d2c
commit
018c130935
20
lib/node.js
20
lib/node.js
@ -444,6 +444,18 @@ Node.prototype.getStats = function(forced)
|
||||
console.log(' ', 'forced:', chalk.reset.cyan(forced === true));
|
||||
|
||||
async.parallel({
|
||||
block: function (callback)
|
||||
{
|
||||
// TODO: Remove warkaround when web3.js is fixed
|
||||
if( !self.chainFilter )
|
||||
{
|
||||
console.warn("Getting", chalk.reset.red('latest block'), chalk.reset.bold.red('forced'));
|
||||
|
||||
self.getLatestBlock();
|
||||
}
|
||||
|
||||
callback(null, true);
|
||||
},
|
||||
peers: function (callback)
|
||||
{
|
||||
web3.net.getPeerCount(callback);
|
||||
@ -504,14 +516,6 @@ Node.prototype.getPending = function()
|
||||
|
||||
if (this._web3)
|
||||
{
|
||||
// TODO: Remove warkaround when web3.js is fixed
|
||||
if( !this.chainFilter )
|
||||
{
|
||||
console.warn("Getting", chalk.reset.red('latest block'), chalk.reset.bold.red('forced'));
|
||||
|
||||
this.getLatestBlock();
|
||||
}
|
||||
|
||||
console.info('==>', 'Getting Pending')
|
||||
|
||||
web3.eth.getBlockTransactionCount('pending', function (err, pending)
|
||||
|
Loading…
Reference in New Issue
Block a user