From 9f6e398884ee158cd22c685ce308043a25234095 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 12 Jan 2022 16:54:38 +0100 Subject: do withdrawal with fewer DB accesses --- packages/taler-wallet-core/src/operations/pending.ts | 6 ------ 1 file changed, 6 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/pending.ts') diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts index 07c29e874..99d275836 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -37,13 +37,9 @@ import { } from "../pending-types.js"; import { getTimestampNow, - isTimestampExpired, - j2s, - Logger, Timestamp, } from "@gnu-taler/taler-util"; import { InternalWalletState } from "../common.js"; -import { getBalancesInsideTransaction } from "./balance.js"; import { GetReadOnlyAccess } from "../util/query.js"; async function gatherExchangePending( @@ -353,9 +349,7 @@ export async function getPendingOperations( recoupGroups: x.recoupGroups, })) .runReadWrite(async (tx) => { - const walletBalance = await getBalancesInsideTransaction(ws, tx); const resp: PendingOperationsResponse = { - walletBalance, pendingOperations: [], }; await gatherExchangePending(tx, now, resp); -- cgit v1.2.3