Merge pull request #1497 from isocolsky/fea/no_broadcast
When only 1 signature is required, broadcast at creation
This commit is contained in:
commit
90c01ae384
3 changed files with 13 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
|||
});
|
||||
}
|
||||
|
||||
if (w.isShared()) {
|
||||
if (w.requiresMultipleSignatures()) {
|
||||
$scope.loading = false;
|
||||
var message = 'The transaction proposal has been created';
|
||||
if (merchantData) {
|
||||
|
|
|
|||
|
|
@ -2472,6 +2472,14 @@ Wallet.prototype.isShared = function() {
|
|||
return this.totalCopayers > 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* @desc Returns true if more than one signature is required
|
||||
* @return {boolean}
|
||||
*/
|
||||
Wallet.prototype.requiresMultipleSignatures = function() {
|
||||
return this.requiredCopayers > 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* @desc Returns true if the keyring is complete and all users have backed up the wallet
|
||||
* @return {boolean}
|
||||
|
|
|
|||
|
|
@ -95,6 +95,10 @@ FakeWallet.prototype.isShared = function() {
|
|||
return this.totalCopayers > 1;
|
||||
}
|
||||
|
||||
FakeWallet.prototype.requiresMultipleSignatures = function() {
|
||||
return this.requiredCopayers > 1;
|
||||
};
|
||||
|
||||
FakeWallet.prototype.isReady = function() {
|
||||
return true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue