Merge pull request #102 from slickage/fix_reorg
Fix crash during reorg: setBlockHeight replaced with setBlockNotMain in ...
This commit is contained in:
commit
180dc1341d
@ -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