From f22f5f89cc99fb0556b956b6432e4817d52378d2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 18 Dec 2023 23:00:33 +0100 Subject: wallet-core: update exchange inline, not in task A task (such as refresh) can't wait until the exchange update task updates the exchange, as task handlers don't run concurrently. The previous behavior caused some transactions to block indefinitely when waiting for an updated exchange entry. --- packages/taler-wallet-core/src/host-impl.qtart.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'packages/taler-wallet-core/src/host-impl.qtart.ts') diff --git a/packages/taler-wallet-core/src/host-impl.qtart.ts b/packages/taler-wallet-core/src/host-impl.qtart.ts index 686374beb..0fc346b44 100644 --- a/packages/taler-wallet-core/src/host-impl.qtart.ts +++ b/packages/taler-wallet-core/src/host-impl.qtart.ts @@ -30,20 +30,19 @@ import type { } from "@gnu-taler/idb-bridge"; // eslint-disable-next-line no-duplicate-imports import { + AccessStats, BridgeIDBFactory, MemoryBackend, createSqliteBackend, shimIndexedDB, } from "@gnu-taler/idb-bridge"; -import { AccessStats } from "@gnu-taler/idb-bridge"; -import { SynchronousCryptoWorkerFactoryPlain } from "./crypto/workers/synchronousWorkerFactoryPlain.js"; -import { openTalerDatabase } from "./index.js"; -import { Logger, enableNativeLogging } from "@gnu-taler/taler-util"; +import { Logger } from "@gnu-taler/taler-util"; import { createPlatformHttpLib } from "@gnu-taler/taler-util/http"; -import { SetTimeoutTimerAPI } from "./util/timer.js"; -import { Wallet } from "./wallet.js"; import { qjsOs, qjsStd } from "@gnu-taler/taler-util/qtart"; +import { SynchronousCryptoWorkerFactoryPlain } from "./crypto/workers/synchronousWorkerFactoryPlain.js"; import { DefaultNodeWalletArgs, makeTempfileId } from "./host-common.js"; +import { SetTimeoutTimerAPI } from "./util/timer.js"; +import { Wallet } from "./wallet.js"; const logger = new Logger("host-impl.qtart.ts"); -- cgit v1.2.3