diff --git a/lib/http/server.js b/lib/http/server.js index 9460f211..53327123 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -734,9 +734,7 @@ HTTPServer.prototype._init = function _init() { // Rescan this.post('/rescan', con(function* (req, res, send, next) { var options = req.options; - var height = options.hash || options.height; - - enforce(height != null, 'Hash or height is required.'); + var height = options.height; send(200, { success: true }); yield this.walletdb.rescan(height);