From 151ab351f6a2e00caecc9a1dda19b724f90a088e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 19 Feb 2024 20:10:24 +0100 Subject: -dce --- packages/taler-wallet-core/src/withdraw.ts | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'packages/taler-wallet-core/src') diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts index 4979b2623..45792af41 100644 --- a/packages/taler-wallet-core/src/withdraw.ts +++ b/packages/taler-wallet-core/src/withdraw.ts @@ -2564,22 +2564,8 @@ export async function acceptWithdrawalFromUri( const ctx = new WithdrawTransactionContext(ws, withdrawalGroupId); - // FIXME: Do we wait here until the reserve is registered with the bank? - await waitWithdrawalRegistered(ws, ctx); - const processedWithdrawalGroup = await getWithdrawalGroupRecordTx(ws.db, { - withdrawalGroupId, - }); - if ( - processedWithdrawalGroup?.status === WithdrawalGroupStatus.FailedBankAborted - ) { - throw TalerError.fromDetail( - TalerErrorCode.WALLET_WITHDRAWAL_OPERATION_ABORTED_BY_BANK, - {}, - ); - } - ws.taskScheduler.startShepherdTask(ctx.taskId); return { -- cgit v1.2.3