http: allow rescanning from start block.

This commit is contained in:
Christopher Jeffrey 2016-11-16 09:43:32 -08:00
parent f0fb7c4db3
commit c011e94cdb
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);