Skip to content
Permalink
Browse files

Fix off by one required minimum amount error.

Resolves #812
Resolves #813
  • Loading branch information...
nopara73 committed Nov 10, 2018
1 parent 303b5d2 commit cbfa138efa45794f4a113d2be4836f9b72e627e4
Showing with 1 addition and 1 deletion.
  1. +1 −1 WalletWasabi/Models/ChaumianCoinJoin/CcjClientState.cs
@@ -196,7 +196,7 @@ public IEnumerable<(uint256 txid, uint index)> GetRegistrableCoins(int maximumIn
}

amountSoFar += coin.Amount;
if (amountSoFar > amountNeededExceptInputFees + (feePerInputs * coinsToRegister.Count))
if (amountSoFar >= amountNeededExceptInputFees + (feePerInputs * coinsToRegister.Count))
{
// If input count doesn't reach the max input registration AND there are enough coins queued, then can register to mix.
return coinsToRegister.Select(x => (x.TransactionId, x.Index)).ToArray();

0 comments on commit cbfa138

Please sign in to comment.
You can’t perform that action at this time.