commit ad40fc46383761b83e054227428a99cdc4298248
parent dbff2c5670c1a18eec618b693786081011cf3ff3
Author: Florian Dold <florian@dold.me>
Date: Wed, 15 Jul 2026 15:10:31 +0200
wallet-core: treat missing withdrawal group in p2p as failed, not done
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/taler-wallet-core/src/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/pay-peer-push-credit.ts
@@ -26,12 +26,12 @@ import {
LegitimizationNeededResponse,
Logger,
NotificationType,
- TalerPayPushUri,
PeerContractTerms,
PreparePeerPushCreditRequest,
PreparePeerPushCreditResponse,
Result,
TalerErrorDetail,
+ TalerPayPushUri,
TalerPreciseTimestamp,
TalerUriAction,
TalerUris,
@@ -972,7 +972,7 @@ async function processPendingWithdrawing(
}
const wg = await tx.withdrawalGroups.get(wgId);
if (!wg) {
- ppi.status = PeerPushCreditStatus.Done;
+ ppi.status = PeerPushCreditStatus.Failed;
await h.update(ppi);
return TaskRunResult.finished();
}