fix for resetHeight.
This commit is contained in:
parent
e9a847e8e2
commit
5e51b919f2
@ -510,7 +510,7 @@ ChainDB.prototype.resetHeightAsync = function resetHeightAsync(height, callback)
|
|||||||
|
|
||||||
this.getAsync(height, function(err, tip) {
|
this.getAsync(height, function(err, tip) {
|
||||||
if (err)
|
if (err)
|
||||||
return done(err);
|
return callback(err);
|
||||||
|
|
||||||
self.tip = tip;
|
self.tip = tip;
|
||||||
assert(self.tip);
|
assert(self.tip);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user