diff --git a/lib/services/header/index.js b/lib/services/header/index.js index a51f6594..4f2bb78b 100644 --- a/lib/services/header/index.js +++ b/lib/services/header/index.js @@ -960,7 +960,7 @@ HeaderService.prototype.getEndHash = function(tip, blockCount, callback) { HeaderService.prototype.getLastHeader = function() { // FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error - if (this._lastHeader = false) { + if (this._lastHeader == false) { log.error('Last header should be populated.'); return; } // assert(this._lastHeader, 'Last header should be populated.'); @@ -1023,7 +1023,7 @@ HeaderService.prototype._adjustHeadersForCheckPointTip = function(callback) { // FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error - if (self._lastHeader = false) { + if (self._lastHeader == false) { log.error('The last synced header was not in the database.'); } //assert(self._lastHeader, 'The last synced header was not in the database.');