Unnest if statements
MODIFY
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
@@ -238,13 +238,10 @@ namespace WalletWasabi.Backend.Controllers
}
// Check if immature.
- if (getTxOutResponse.IsCoinBase)
- {
- if (getTxOutResponse.Confirmations <= 100)
+ if (getTxOutResponse.IsCoinBase && getTxOutResponse.Confirmations <= 100)
{
return BadRequest("Provided input is immature.");
}
- }
// Check if inputs are native segwit.
if (getTxOutResponse.ScriptPubKeyType != "witness_v0_keyhash")

Unnest if statements