diff options
author | Florian Dold <florian@dold.me> | 2022-01-12 16:54:38 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-01-12 16:54:38 +0100 |
commit | 9f6e398884ee158cd22c685ce308043a25234095 (patch) | |
tree | 50afccf96d5b207c16f5280d31d8b906a9cf79d0 /packages/taler-wallet-core/src/operations/pending.ts | |
parent | dd66e43b3ceb3e393f399ac5544941de8912c59d (diff) | |
download | wallet-core-9f6e398884ee158cd22c685ce308043a25234095.tar.xz |
do withdrawal with fewer DB accesses
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pending.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pending.ts | 6 |
1 files changed, 0 insertions, 6 deletions
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); |