When only 1 signature is required, broadcast at creation
This commit is contained in:
parent
f3f03af9b2
commit
b15c620f0d
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;
|
$scope.loading = false;
|
||||||
var message = 'The transaction proposal has been created';
|
var message = 'The transaction proposal has been created';
|
||||||
if (merchantData) {
|
if (merchantData) {
|
||||||
|
|
|
||||||
|
|
@ -2475,6 +2475,14 @@ Wallet.prototype.isShared = function() {
|
||||||
return this.totalCopayers > 1;
|
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
|
* @desc Returns true if the keyring is complete and all users have backed up the wallet
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,10 @@ FakeWallet.prototype.isShared = function() {
|
||||||
return this.totalCopayers > 1;
|
return this.totalCopayers > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FakeWallet.prototype.requiresMultipleSignatures = function() {
|
||||||
|
return this.requiredCopayers > 1;
|
||||||
|
};
|
||||||
|
|
||||||
FakeWallet.prototype.isReady = function() {
|
FakeWallet.prototype.isReady = function() {
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue