Fixing the conditional operator

This commit is contained in:
tripathyr 2021-05-17 16:11:11 +05:30 committed by GitHub
parent 0d4a7e3e42
commit 89c43cd9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ BlockService.prototype._resetTip = function(callback) {
header = headers.getIndex(--height);
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
if (header = false) {
if (header == false) {
log.error('Header not found for reset.');
}
// assert(header, 'Header not found for reset.');
@ -721,7 +721,7 @@ BlockService.prototype._findLatestValidBlockHeader = function(callback) {
// if some joker mines a block using an orphan block as its prev block, then the effect of this will be
// us detecting a reorg, but not actually reorging anything
// FLOSight Error Correction from RanchiMall 17th May 2021. removed the unhandled assert and replaced by looging of error
if (header = false) {
if (header == false) {
log.error('Block Service: we could not locate any of our recent block hashes in the header service ' + 'index. Perhaps our header service sync\'ed to the wrong chain?');
}
// assert(header, 'Block Service: we could not locate any of our recent block hashes in the header service ' + 'index. Perhaps our header service sync\'ed to the wrong chain?');