diff --git a/lib/bcoin/chaindb.js b/lib/bcoin/chaindb.js index a4d7ec7a..e48c14d0 100644 --- a/lib/bcoin/chaindb.js +++ b/lib/bcoin/chaindb.js @@ -510,7 +510,7 @@ ChainDB.prototype.resetHeightAsync = function resetHeightAsync(height, callback) this.getAsync(height, function(err, tip) { if (err) - return callback(err); + return done(err); self.tip = tip; assert(self.tip);