fix callback.
This commit is contained in:
parent
36c3d72021
commit
bcd68c4ed8
@ -226,7 +226,7 @@ Chain.prototype.preload = function preload(callback) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
stream.on('end', function() {
|
stream.on('end', function() {
|
||||||
return callback(null, height + 1);
|
return callback(height + 1);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user