Update index.js
This commit is contained in:
parent
821aae706d
commit
522d00bd52
@ -277,7 +277,7 @@ BlockService.prototype._resetTip = function(callback) {
|
||||
|
||||
if (err || !block) {
|
||||
return callback(err ||
|
||||
log.error('Block Service: none of the blocks from the headers match what is already indexed in the block service.'));
|
||||
'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 || log.error('Block Service: we should have a header in order to get time since last block.'));
|
||||
return callback(err || '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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user