rename.
This commit is contained in:
parent
d4b840065f
commit
a567a61b41
@ -901,7 +901,7 @@ Wallet.prototype.zap = function zap(account, age, callback) {
|
||||
account = 0;
|
||||
}
|
||||
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.zap(id, age, callback);
|
||||
});
|
||||
};
|
||||
@ -1042,7 +1042,7 @@ Wallet.prototype.addTX = function addTX(tx, callback) {
|
||||
|
||||
Wallet.prototype.getHistory = function getHistory(account, callback) {
|
||||
var self = this;
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getHistory(id, callback);
|
||||
});
|
||||
};
|
||||
@ -1056,7 +1056,7 @@ Wallet.prototype.getHistory = function getHistory(account, callback) {
|
||||
* @param {Function} callback - Returns [String, Function].
|
||||
*/
|
||||
|
||||
Wallet.prototype._getID = function _getID(account, errback, callback) {
|
||||
Wallet.prototype._getKey = function _getKey(account, errback, callback) {
|
||||
var self = this;
|
||||
|
||||
if (typeof account === 'function') {
|
||||
@ -1086,7 +1086,7 @@ Wallet.prototype._getID = function _getID(account, errback, callback) {
|
||||
|
||||
Wallet.prototype.getCoins = function getCoins(account, callback) {
|
||||
var self = this;
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getCoins(id, callback);
|
||||
});
|
||||
};
|
||||
@ -1099,7 +1099,7 @@ Wallet.prototype.getCoins = function getCoins(account, callback) {
|
||||
|
||||
Wallet.prototype.getUnconfirmed = function getUnconfirmed(account, callback) {
|
||||
var self = this;
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getUnconfirmed(id, callback);
|
||||
});
|
||||
};
|
||||
@ -1112,7 +1112,7 @@ Wallet.prototype.getUnconfirmed = function getUnconfirmed(account, callback) {
|
||||
|
||||
Wallet.prototype.getBalance = function getBalance(account, callback) {
|
||||
var self = this;
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getBalance(id, callback);
|
||||
});
|
||||
};
|
||||
@ -1127,7 +1127,7 @@ Wallet.prototype.getBalance = function getBalance(account, callback) {
|
||||
|
||||
Wallet.prototype.getLastTime = function getLastTime(account, callback) {
|
||||
var self = this;
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getLastTime(id, callback);
|
||||
});
|
||||
};
|
||||
@ -1148,7 +1148,7 @@ Wallet.prototype.getLast = function getLast(account, limit, callback) {
|
||||
account = null;
|
||||
}
|
||||
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getLast(id, callback);
|
||||
});
|
||||
};
|
||||
@ -1171,7 +1171,7 @@ Wallet.prototype.getTimeRange = function getTimeRange(account, options, callback
|
||||
account = null;
|
||||
}
|
||||
|
||||
this._getID(account, callback, function(id, callback) {
|
||||
this._getKey(account, callback, function(id, callback) {
|
||||
self.db.getTimeRange(id, options, callback);
|
||||
});
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user