simplify required rejections formula

This commit is contained in:
Ivan Socolsky 2015-02-09 14:20:25 -03:00
parent 4cf2f7e8ca
commit 8f277b179c
1 changed files with 1 additions and 1 deletions

View File

@ -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);