Merge pull request #152 from cubedro/develop

Version 0.0.11
This commit is contained in:
Marian OANCΞA 2015-05-28 13:43:12 +03:00
commit 7f44dc7a6c
2 changed files with 8 additions and 5 deletions

View File

@ -358,10 +358,11 @@ Node.prototype.getLatestBlock = function ()
if(this._web3)
{
console.time('==>', 'Got block in');
var timeString = 'Got block in' + chalk.reset.red('');
console.time('==>', timeString);
web3.eth.getBlock('latest', false, function(error, result) {
self.validateLatestBlock(error, result, 'Got block in');
self.validateLatestBlock(error, result, timeString);
});
}
}
@ -568,11 +569,13 @@ Node.prototype.setWatches = function()
this._latestQueue = async.queue(function (hash, callback)
{
console.time('==>', 'Got block ' + hash + ' in');
var timeString = 'Got block in ' + chalk.reset.red(hash) + chalk.reset.bold.white(' in') + chalk.reset.green('');
console.time('==>', timeString);
web3.eth.getBlock(hash, false, function (error, result)
{
self.validateLatestBlock(error, result, 'Got block ' + hash + ' in');
self.validateLatestBlock(error, result, timeString);
callback();
});

View File

@ -1,7 +1,7 @@
{
"name": "eth-net-intelligence-api",
"description": "Ethereum Network Intelligence API",
"version": "0.0.10",
"version": "0.0.11",
"private": true,
"main": "./app.js",
"directories": {