From 8f277b179ce52f8ed206f590cc1fea3cd69d21f2 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Mon, 9 Feb 2015 14:20:25 -0300 Subject: [PATCH] simplify required rejections formula --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index e7e5013..5030e23 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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);