summaryrefslogtreecommitdiff
path: root/src/headless/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/headless/helpers.ts')
-rw-r--r--src/headless/helpers.ts7
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(