http: rename zapAll for consistency.

This commit is contained in:
Christopher Jeffrey 2016-10-05 19:51:46 -07:00
parent 36a63694a0
commit 7f22223436
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 8 additions and 8 deletions

10
bin/cli
View File

@ -262,7 +262,7 @@ CLI.prototype.signTX = co(function* signTX() {
this.log(tx); this.log(tx);
}); });
CLI.prototype.zap = co(function* zap() { CLI.prototype.zapWallet = co(function* zapWallet() {
var age = (this.config.age >>> 0) || 72 * 60 * 60; var age = (this.config.age >>> 0) || 72 * 60 * 60;
yield this.wallet.zap(this.config.account, age); yield this.wallet.zap(this.config.account, age);
this.log('Zapped!'); this.log('Zapped!');
@ -303,9 +303,9 @@ CLI.prototype.rescan = co(function* rescan() {
this.log('Rescanning...'); this.log('Rescanning...');
}); });
CLI.prototype.zapAll = co(function* zapAll() { CLI.prototype.zap = co(function* zap() {
var age = +this.argv[0] || 72 * 3600; var age = +this.argv[0] || 72 * 3600;
yield this.client.zapAll(age); yield this.client.zap(age);
this.log('Zapped.'); this.log('Zapped.');
}); });
@ -428,7 +428,7 @@ CLI.prototype.handleWallet = co(function* handleWallet() {
case 'send': case 'send':
return yield this.sendTX(); return yield this.sendTX();
case 'zap': case 'zap':
return yield this.zap(); return yield this.zapWallet();
case 'tx': case 'tx':
return yield this.getDetails(); return yield this.getDetails();
case 'view': case 'view':
@ -500,7 +500,7 @@ CLI.prototype.handleNode = co(function* handleNode() {
case 'rescan': case 'rescan':
return yield this.rescan(); return yield this.rescan();
case 'zap': case 'zap':
return yield this.zapAll(); return yield this.zap();
case 'backup': case 'backup':
return yield this.backup(); return yield this.backup();
case 'rpc': case 'rpc':

View File

@ -364,7 +364,7 @@ HTTPClient.prototype.rescan = function rescan(hash) {
* @returns {Promise} * @returns {Promise}
*/ */
HTTPClient.prototype.zapAll = function zapAll(age) { HTTPClient.prototype.zap = function zap(age) {
var options = { age: age }; var options = { age: age };
return this._post('/zap', options); return this._post('/zap', options);
}; };
@ -677,7 +677,7 @@ HTTPClient.prototype.fillCoins = function fillCoins(id, tx) {
* @returns {Promise} * @returns {Promise}
*/ */
HTTPClient.prototype.zap = function zap(id, account, age) { HTTPClient.prototype.zapWallet = function zapWallet(id, account, age) {
var body = { var body = {
account: account, account: account,
age: age age: age

View File

@ -205,7 +205,7 @@ HTTPWallet.prototype.getCoin = function getCoin(account, hash, index) {
*/ */
HTTPWallet.prototype.zap = function zap(account, age) { HTTPWallet.prototype.zap = function zap(account, age) {
return this.client.zap(this.id, account, age); return this.client.zapWallet(this.id, account, age);
}; };
/** /**