Improved tests
This commit is contained in:
parent
70446c5ee7
commit
2c53bc073e
4 changed files with 281 additions and 142 deletions
|
|
@ -122,7 +122,7 @@ angular.module('copayApp.services')
|
|||
notification.info('Transaction Update', $filter('translate')('A transaction was rejected by') + ' ' + user);
|
||||
break;
|
||||
case 'corrupt':
|
||||
notification.error('Transaction Error', $filter('translate')('Received corrupt transaction from') + ' ' + user);
|
||||
notification.error('Transaction Error', $filter('translate')('Received corrupt transaction from') + ' ' + user);
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
|
@ -177,8 +177,6 @@ angular.module('copayApp.services')
|
|||
if (!w) return root.onErrorDigest();
|
||||
if (!w.isReady()) return;
|
||||
|
||||
w.removeTxWithSpentInputs();
|
||||
|
||||
$rootScope.balanceByAddr = {};
|
||||
$rootScope.updatingBalance = true;
|
||||
|
||||
|
|
@ -232,12 +230,9 @@ angular.module('copayApp.services')
|
|||
return txs.push(null);
|
||||
}
|
||||
|
||||
if (myCopayerId != i.creator && !i.finallyRejected && !i.sentTs && !i.rejectedByUs && !i.signedByUs) {
|
||||
if (i.isPending && myCopayerId != i.creator && !i.rejectedByUs && !i.signedByUs) {
|
||||
pendingForUs++;
|
||||
}
|
||||
if (!i.finallyRejected && !i.sentTs) {
|
||||
i.isPending = 1;
|
||||
}
|
||||
|
||||
if (!!opts.pending == !!i.isPending) {
|
||||
var tx = i.builder.build();
|
||||
|
|
@ -262,6 +257,8 @@ angular.module('copayApp.services')
|
|||
}
|
||||
});
|
||||
|
||||
w.removeTxWithSpentInputs();
|
||||
|
||||
$rootScope.txs = txs;
|
||||
$rootScope.txsOpts = opts;
|
||||
if ($rootScope.pendingTxCount < pendingForUs) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue