From e6ed901626a5219a1d091f4f41654365d2c29531 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 19 Feb 2023 23:13:44 +0100 Subject: wallet-core: various p2p payment fixes --- packages/taler-wallet-core/src/operations/withdraw.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index f6d79b229..e6c233e2b 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1914,6 +1914,12 @@ export async function internalCreateWithdrawalGroup( reservePriv: withdrawalGroup.reservePriv, }); + const exchange = await tx.exchanges.get(withdrawalGroup.exchangeBaseUrl); + if (exchange) { + exchange.lastWithdrawal = TalerProtocolTimestamp.now(); + await tx.exchanges.put(exchange); + } + if (!isAudited && !isTrusted) { await tx.exchangeTrust.put({ currency: amount.currency, -- cgit v1.2.3