Refactor blockchain backing service
This commit is contained in:
parent
b2f4d4d870
commit
33801e9587
12 changed files with 569 additions and 548 deletions
|
|
@ -109,7 +109,9 @@ angular.module('copayApp.controllers').controller('TransactionsController',
|
|||
var addresses = w.getAddressesStr();
|
||||
if (addresses.length > 0) {
|
||||
$scope.blockchain_txs = $scope.wallet.txCache || [];
|
||||
w.blockchain.getTransactions(addresses, function(txs) {
|
||||
w.blockchain.getTransactions(addresses, function(err, txs) {
|
||||
if (err) throw err;
|
||||
|
||||
$timeout(function() {
|
||||
$scope.blockchain_txs = [];
|
||||
for (var i = 0; i < txs.length; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue