Merge pull request #102 from slickage/fix_reorg

Fix crash during reorg: setBlockHeight replaced with setBlockNotMain in ...
This commit is contained in:
Matias Alejo Garcia 2014-05-29 07:38:02 -03:00
commit 180dc1341d

View File

@ -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();
});