From c81d57c25cacb190f98fce676523fbebf76ac5bc Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 12 May 2017 11:42:28 -0700 Subject: [PATCH] client: fix wallet admin calls. see #185. --- lib/http/client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/http/client.js b/lib/http/client.js index 77d72c40..aa2695e3 100644 --- a/lib/http/client.js +++ b/lib/http/client.js @@ -386,7 +386,7 @@ HTTPClient.prototype.broadcast = function broadcast(tx) { HTTPClient.prototype.rescan = function rescan(height) { var options = { height: height }; - return this._post('/_admin/rescan', options); + return this._post('/wallet/_admin/rescan', options); }; /** @@ -406,7 +406,7 @@ HTTPClient.prototype.reset = function reset(height) { */ HTTPClient.prototype.resend = function resend() { - return this._post('/_admin/resend', {}); + return this._post('/wallet/_admin/resend', {}); }; /** @@ -417,7 +417,7 @@ HTTPClient.prototype.resend = function resend() { HTTPClient.prototype.backup = function backup(path) { var options = { path: path }; - return this._post('/_admin/backup', options); + return this._post('/wallet/_admin/backup', options); }; /** @@ -482,7 +482,7 @@ HTTPClient.prototype.none = function none() { */ HTTPClient.prototype.getWallets = function getWallets() { - return this._get('/wallets'); + return this._get('/wallet/_admin/wallets'); }; /**