Get transactions of all addresses (the generated and the changes). Do not repeat txids on the front-end

This commit is contained in:
Gustavo Cortez 2014-04-23 03:37:17 -03:00
commit 68fd916053
3 changed files with 37 additions and 11 deletions

View file

@ -69,13 +69,14 @@ console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
$scope.getTransactions = function() {
var w =$rootScope.wallet;
var addresses = w.getAddressesStr(true);
var addresses = w.getAddressesStr();
w.blockchain.getTransactions(addresses, function(txs) {
$scope.blockchain_txs = txs;
$scope.$digest();
});
if (addresses.length > 0) {
w.blockchain.getTransactions(addresses, function(txs) {
$scope.blockchain_txs = txs;
$rootScope.$digest();
});
}
};
_updateTxs();