aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/host-impl.node.ts
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-08-31 13:12:06 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-08-31 13:12:06 +0200
commit94cfcc875065f988815c31aaf8ebf36f75ac5983 (patch)
tree8389a638c67a3ae2d57fb354da1df6378e82113f /packages/taler-wallet-core/src/host-impl.node.ts
parente02a4eb990c8c54662fbb658695312bdfce492e0 (diff)
parent79973a63dd31c0d84b677a2a1511b1dffc6218b8 (diff)
Merge branch 'master' into age-withdraw
Diffstat (limited to 'packages/taler-wallet-core/src/host-impl.node.ts')
-rw-r--r--packages/taler-wallet-core/src/host-impl.node.ts11
1 files changed, 1 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/host-impl.node.ts b/packages/taler-wallet-core/src/host-impl.node.ts
index 6a4f21d79..0b6539306 100644
--- a/packages/taler-wallet-core/src/host-impl.node.ts
+++ b/packages/taler-wallet-core/src/host-impl.node.ts
@@ -139,13 +139,6 @@ export async function createNativeWalletHost2(
});
}
- const myVersionChange = (): Promise<void> => {
- logger.error("version change requested, should not happen");
- throw Error(
- "BUG: wallet DB version change event can't happen with memory IDB",
- );
- };
-
let dbResp: MakeDbResult;
if (args.persistentStoragePath &&args.persistentStoragePath.endsWith(".json")) {
@@ -160,8 +153,6 @@ export async function createNativeWalletHost2(
shimIndexedDB(dbResp.idbFactory);
- const myDb = await openTalerDatabase(myIdbFactory, myVersionChange);
-
let workerFactory;
const cryptoWorkerType = args.cryptoWorkerType ?? "node-worker-thread";
if (cryptoWorkerType === "sync") {
@@ -189,7 +180,7 @@ export async function createNativeWalletHost2(
const timer = new SetTimeoutTimerAPI();
const w = await Wallet.create(
- myDb,
+ myIdbFactory,
myHttpLib,
timer,
workerFactory,