http: allow rescanning from start block.
This commit is contained in:
parent
f0fb7c4db3
commit
c011e94cdb
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user