commit 8112ec78277df5783ad4d0fca32af76eea82623e
parent e3fcb3fa0f9a96c955693a581d4e3867909fa94f
Author: Marc Stibane <marc@taler.net>
Date: Sat, 10 Oct 2026 08:52:29 +0200
AI: MaxPeerPushDebitAmount
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift b/TalerWallet1/Views/Actions/Peer2peer/SendAmountView.swift
@@ -90,7 +90,12 @@ struct SendAmountView: View {
if let fee = fee(raw: raw, effective: effective) {
feeString = fee.formatted(balance.scopeInfo, isNegative: false)
symLog.log("Fee = \(feeString.0)")
- let insufficient = (try? effective > amountAvailable) ?? true
+ // wallet-core found coins for amount + fees, so it is affordable.
+ let insufficient = false
+// let insufficient = (try? effective > amountAvailable) ?? true
+ // Comparing effective with amountAvailable would be wrong:
+ // that is the *raw* maximum (getMaxPeerPushDebitAmount),
+ // which effective exceeds near the maximum.
peerPushCheck = ppCheck
let feeLabel = (feeLabel(feeString.0), feeLabel(feeString.1))