diff options
author | Florian Dold <florian@dold.me> | 2023-08-30 16:51:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-08-30 16:51:51 +0200 |
commit | aba173d8a906fa0ede0c3660bd37b11fb7a6a127 (patch) | |
tree | 0957b732b6892236e5ef1fbc9e93cda56b6908e1 /packages/taler-wallet-core/src/host-impl.node.ts | |
parent | 53613a137df432878d62317e685bd1737dc6a6dc (diff) | |
download | wallet-core-aba173d8a906fa0ede0c3660bd37b11fb7a6a127.tar.xz |
wallet-core: open DB inside wallet handle, back up meta DB as well
Diffstat (limited to 'packages/taler-wallet-core/src/host-impl.node.ts')
-rw-r--r-- | packages/taler-wallet-core/src/host-impl.node.ts | 11 |
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, |