diff --git a/lib/http/client.js b/lib/http/client.js index 84c26304..77d72c40 100644 --- a/lib/http/client.js +++ b/lib/http/client.js @@ -391,13 +391,13 @@ HTTPClient.prototype.rescan = function rescan(height) { /** * Reset the chain. - * @param {Hash|Number} block + * @param {Number} height * @returns {Promise} */ -HTTPClient.prototype.reset = function reset(block) { - var options = { block: block }; - return this._post('/_admin/reset', options); +HTTPClient.prototype.reset = function reset(height) { + var options = { height: height }; + return this._post('/reset', options); }; /** diff --git a/lib/http/server.js b/lib/http/server.js index 7fcf2e25..7d8009be 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -340,7 +340,7 @@ HTTPServer.prototype.initRouter = function initRouter() { var valid = req.valid(); var height = valid.u32('height'); - enforce(height != null, 'Hash or height is required.'); + enforce(height != null, 'Height is required.'); yield this.chain.reset(height);