diff --git a/lib/bcoin/chaindb.js b/lib/bcoin/chaindb.js index e48c14d0..a4d7ec7a 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 done(err); + return callback(err); self.tip = tip; assert(self.tip);