Get transactions of all addresses (the generated and the changes). Do not repeat txids on the front-end
This commit is contained in:
parent
df9b26fdde
commit
68fd916053
3 changed files with 37 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue