From 5e51b919f243ea4c2a667ac218938a75299acf70 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 19 Feb 2016 11:24:07 -0800 Subject: [PATCH] fix for resetHeight. --- lib/bcoin/chaindb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);