Fix crash during reorg: setBlockHeight replaced with setBlockNotMain in f0f936d2d8

This commit is contained in:
Warren Togami 2014-05-28 23:28:44 -10:00
parent c9c8a8739f
commit 375105136e

View File

@ -202,7 +202,7 @@ HistoricSync.prototype.updateStartBlock = function(next) {
self.sync.bDb.fromHashWithInfo(tip, function(err, bi) { self.sync.bDb.fromHashWithInfo(tip, function(err, bi) {
blockInfo = bi ? bi.info : {}; blockInfo = bi ? bi.info : {};
if (oldtip) if (oldtip)
self.sync.setBlockHeight(oldtip, -1, cb); self.sync.bDb.setBlockNotMain(oldtip, cb);
else else
return cb(); return cb();
}); });