Fixed the conditional operator
This commit is contained in:
parent
89c43cd9a7
commit
5344d9cd5b
@ -960,7 +960,7 @@ HeaderService.prototype.getEndHash = function(tip, blockCount, callback) {
|
|||||||
|
|
||||||
HeaderService.prototype.getLastHeader = function() {
|
HeaderService.prototype.getLastHeader = function() {
|
||||||
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
|
// 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;
|
log.error('Last header should be populated.'); return;
|
||||||
}
|
}
|
||||||
// assert(this._lastHeader, 'Last header should be populated.');
|
// 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
|
// 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.');
|
log.error('The last synced header was not in the database.');
|
||||||
}
|
}
|
||||||
//assert(self._lastHeader, 'The last synced header was not in the database.');
|
//assert(self._lastHeader, 'The last synced header was not in the database.');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user