simplify required rejections formula
This commit is contained in:
parent
4cf2f7e8ca
commit
8f277b179c
|
@ -420,7 +420,7 @@ CopayServer.prototype.createTx = function(opts, cb) {
|
|||
message: opts.message,
|
||||
changeAddress: changeAddress.address,
|
||||
requiredSignatures: wallet.m,
|
||||
requiredRejections: Math.min(wallet.m - 1, wallet.n - wallet.m) + 1,
|
||||
requiredRejections: Math.min(wallet.m, wallet.n - wallet.m + 1),
|
||||
});
|
||||
|
||||
txp.inputs = self._selectUtxos(txp, utxos);
|
||||
|
|
Loading…
Reference in New Issue