diff --git a/lib/services/block/index.js b/lib/services/block/index.js index 86801226..548d2ab1 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -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) {