taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit faf2520422a0e65810abac7e93c2ea7635d33e94
parent 738c28f8686196ced3eb88756a393b1eba7b17d6
Author: Florian Dold <dold@taler.net>
Date:   Thu,  3 Sep 2026 16:01:24 +0200

wallet-core: let a push credit wait while its withdrawal does KYC

The withdrawal's own task drives the KYC; throwing on every run only
showed an error instead of the waiting state.

Diffstat:
Mpackages/taler-wallet-core/src/pay-peer-push-credit.ts | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/pay-peer-push-credit.ts @@ -1318,10 +1318,11 @@ async function processPendingWithdrawing( case WithdrawalGroupStatus.SuspendedRegisteringBank: case WithdrawalGroupStatus.SuspendedWaitConfirmBank: case WithdrawalGroupStatus.FinalizingKycHardLimit: - return TaskRunResult.backoff(); + // The withdrawal's own task handles the KYC; the credit waits for it. case WithdrawalGroupStatus.PendingBalanceKyc: case WithdrawalGroupStatus.PendingBalanceKycInit: case WithdrawalGroupStatus.PendingKyc: + return TaskRunResult.backoff(); case WithdrawalGroupStatus.DialogProposed: throw Error( "unexpected status of withdrawal transaction for peer-push-credit",