aboutsummaryrefslogtreecommitdiff
path: root/src/headless
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-15 19:10:23 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-15 19:10:23 +0200
commit61bc36b90aed99d161b28b9bc1742e7e1599546a (patch)
treef5b8c6048e1de577860ddf2313cbe38efbe7dd88 /src/headless
parent05e32fd8552c316c4d1d5b84bb565c31575a579d (diff)
use factory instead of startWorker
Diffstat (limited to 'src/headless')
-rw-r--r--src/headless/taler-wallet-cli.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 0c6c2ba98..95ee40e7d 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -26,6 +26,7 @@ import URI = require("urijs");
import querystring = require("querystring");
import { CheckPaymentResponse } from "../talerTypes";
+import { NodeCryptoWorkerFactory } from "../crypto/cryptoApi";
const enableTracing = false;
@@ -268,7 +269,7 @@ export async function main() {
myUnsupportedUpgrade,
);
- const myWallet = new Wallet(myDb, myHttpLib, myBadge, myNotifier);
+ const myWallet = new Wallet(myDb, myHttpLib, myBadge, myNotifier, new NodeCryptoWorkerFactory());
const reserveResponse = await myWallet.createReserve({
amount: amounts.parseOrThrow("TESTKUDOS:10.0"),