From c011e94cdbb69f3cd387f394378cb13b1b445157 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 16 Nov 2016 09:43:32 -0800 Subject: [PATCH] http: allow rescanning from start block. --- lib/http/server.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);