diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-11-28 00:46:34 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-11-28 00:46:34 +0100 |
commit | 706c07fa1d069290992bd31d53b0c89324992f9c (patch) | |
tree | 8114c23cda7547f8475c7d8d579f51f968a97f9d /src/headless/helpers.ts | |
parent | c3ca556affe2f514aeb7fd052fe6d626d9319e99 (diff) |
implement JS-only Taler, remove emscripten
Diffstat (limited to 'src/headless/helpers.ts')
-rw-r--r-- | src/headless/helpers.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/headless/helpers.ts b/src/headless/helpers.ts index 5e06a2f25..a38ef1dbe 100644 --- a/src/headless/helpers.ts +++ b/src/headless/helpers.ts @@ -33,6 +33,7 @@ import * as amounts from "../amounts"; import { Bank } from "./bank"; import fs = require("fs"); +import { NodeCryptoWorkerFactory } from "../crypto/nodeProcessWorker"; const enableTracing = false; @@ -188,14 +189,16 @@ export async function getDefaultNodeWallet( myUnsupportedUpgrade, ); + const worker = new SynchronousCryptoWorkerFactory(); + //const worker = new NodeCryptoWorkerFactory(); + return new Wallet( myDb, myHttpLib, myBadge, myNotifier, - new SynchronousCryptoWorkerFactory(), + worker, ); - //const myWallet = new Wallet(myDb, myHttpLib, myBadge, myNotifier, new NodeCryptoWorkerFactory()); } export async function withdrawTestBalance( |