diff options
Diffstat (limited to 'src/headless')
-rw-r--r-- | src/headless/helpers.ts | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts index e65914a01..6832cd4f4 100644 --- a/src/headless/helpers.ts +++ b/src/headless/helpers.ts @@ -25,9 +25,7 @@ import { Wallet } from "../wallet"; import { MemoryBackend, BridgeIDBFactory, shimIndexedDB } from "idb-bridge"; import { openTalerDatabase } from "../db"; -import { - HttpRequestLibrary, -} from "../util/http"; +import { HttpRequestLibrary } from "../util/http"; import * as amounts from "../util/amounts"; import { Bank } from "./bank"; import fs = require("fs"); @@ -39,7 +37,6 @@ import { Logger } from "../util/logging"; const logger = new Logger("helpers.ts"); - export interface DefaultNodeWalletArgs { /** * Location of the wallet database. @@ -112,18 +109,9 @@ export async function getDefaultNodeWallet( throw Error(); }; - const myUnsupportedUpgrade = () => { - console.error("unsupported database migration"); - throw Error(); - }; - shimIndexedDB(myBridgeIdbFactory); - const myDb = await openTalerDatabase( - myIdbFactory, - myVersionChange, - myUnsupportedUpgrade, - ); + const myDb = await openTalerDatabase(myIdbFactory, myVersionChange); //const worker = new SynchronousCryptoWorkerFactory(); //const worker = new NodeCryptoWorkerFactory(); |