Fixed header existence conditions
This commit is contained in:
parent
2c37e05ff7
commit
05c6cd7739
@ -721,9 +721,11 @@ 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 (typeof header !== 'undefined') {
|
||||
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?');
|
||||
if (typeof header.height !== 'undefined') {
|
||||
if (header.height > self._tip.height) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user