Browse Source

do not include change addresses in #getAddresses by default

activeAddress
Ivan Socolsky 10 years ago
parent
commit
5e73aa6f2f
  1. 8
      lib/server.js

8
lib/server.js

@ -289,11 +289,11 @@ WalletService.prototype.getMainAddresses = function(opts, cb) {
self.storage.fetchAddresses(self.walletId, function(err, addresses) {
if (err) return cb(err);
var mainAddresses = _.filter(addresses, {
isChange: false
});
return cb(null, mainAddresses);
var onlyMain = _.reject(addresses, {
isChange: true
});
return cb(null, onlyMain);
});
};

Loading…
Cancel
Save