diff --git a/lib/services/block/index.js b/lib/services/block/index.js index f622b1f5..73ad6be8 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -1113,10 +1113,10 @@ BlockService.prototype._sync = function() { self._processingBlock = true; - log.info('Block Service: querying header service for next block using tip: ' + self._tip.hash); + log.debug('Block Service: querying header service for next block using tip: ' + self._tip.hash); self._header.getEndHash(self._tip, self._readAheadBlockCount, function(err, targetHash, endHash) { - log.info('Value of targetHash is: ' + targetHash + ' and value of endHash is: ' + endHash + ' and value of self._readAheadBlockCount is: ' + self._readAheadBlockCount); + if(err) { self._processingBlock = false; return self._handleError(err); @@ -1135,7 +1135,7 @@ BlockService.prototype._sync = function() { // then we must assume we've reorg'ed very shortly after // we made this call and we should re-compute where we are self._getBlocksTimer = setTimeout(function() { - log.info('Block Service: block timeout, emitting for next block'); + log.debug('Block Service: block timeout, emitting for next block'); self._processingBlock = false; if (!self._reorging) { self.emit('next block');