used/unused addresses list

This commit is contained in:
Javier 2016-11-16 15:23:26 -03:00
commit e3746bfaec
4 changed files with 67 additions and 36 deletions

View file

@ -773,10 +773,9 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
});
};
root.getMainAddresses = function(wallet, limit, cb) {
var opts = {};
root.getMainAddresses = function(wallet, opts, cb) {
opts = opts || {};
opts.reverse = true;
if (limit) opts.limit = limit;
wallet.getMainAddresses(opts, function(err, addresses) {
if (err) return cb(err);