Update index.js

This commit is contained in:
tripathyr 2022-01-24 15:16:15 +05:30 committed by GitHub
parent 1888b4a4ae
commit c3cc5f7465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ BlockService.prototype._resetTip = function(callback) {
if (err || !block) {
return callback(err ||
new Error('Block Service: none of the blocks from the headers match what is already indexed in the block service.'));
log.info('Block Service: none of the blocks from the headers match what is already indexed in the block service.'));
}
self._setTip({ hash: block.rhash(), height: height + 1 }, callback);
@ -415,7 +415,7 @@ BlockService.prototype._getTimeSinceLastBlock = function(callback) {
self._header.getBlockHeader(Math.max(self._tip.height - 1, 0), function(err, header) {
if(err || !header) {
return callback(err || new Error('Block Service: we should have a header in order to get time since last block.'));
return callback(err || log.info('Block Service: we should have a header in order to get time since last block.'));
}
async.map([ self._tip.hash, header.hash ], function(hash, next) {