fix for resetHeight.

This commit is contained in:
Christopher Jeffrey 2016-02-19 11:24:07 -08:00
parent e9a847e8e2
commit 5e51b919f2

View File

@ -510,7 +510,7 @@ ChainDB.prototype.resetHeightAsync = function resetHeightAsync(height, callback)
this.getAsync(height, function(err, tip) {
if (err)
return done(err);
return callback(err);
self.tip = tip;
assert(self.tip);