Fix crash during reorg: setBlockHeight replaced with setBlockNotMain in f0f936d2d8
This commit is contained in:
parent
c9c8a8739f
commit
375105136e
@ -202,7 +202,7 @@ HistoricSync.prototype.updateStartBlock = function(next) {
|
||||
self.sync.bDb.fromHashWithInfo(tip, function(err, bi) {
|
||||
blockInfo = bi ? bi.info : {};
|
||||
if (oldtip)
|
||||
self.sync.setBlockHeight(oldtip, -1, cb);
|
||||
self.sync.bDb.setBlockNotMain(oldtip, cb);
|
||||
else
|
||||
return cb();
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user