summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/index.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-09-06 12:32:31 +0200
committerFlorian Dold <florian@dold.me>2023-09-06 12:32:31 +0200
commit7450bede5b5809f6a496b7e68852a454386850e5 (patch)
treece4aedaad43ad095e643d96f5897883b70616c03 /packages/taler-wallet-cli/src/index.ts
parent07d71eb29704a148f7e7bb0c064cbbad056d5a50 (diff)
downloadwallet-core-7450bede5b5809f6a496b7e68852a454386850e5.tar.gz
wallet-core-7450bede5b5809f6a496b7e68852a454386850e5.tar.bz2
wallet-core-7450bede5b5809f6a496b7e68852a454386850e5.zip
get rid of deprecated bank API client, change allowHttp to requireTls
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r--packages/taler-wallet-cli/src/index.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index a0f44fb41..943283a36 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -244,7 +244,7 @@ async function createLocalWallet(
const dbPath = walletCliArgs.wallet.walletDbFile ?? defaultWalletDbPath;
const myHttpLib = createPlatformHttpLib({
enableThrottling: walletCliArgs.wallet.noThrottle ? false : true,
- allowHttp: walletCliArgs.wallet.noHttp ? false : true,
+ requireTls: walletCliArgs.wallet.noHttp,
});
const wallet = await createNativeWalletHost({
persistentStoragePath: dbPath !== ":memory:" ? dbPath : undefined,
@@ -1259,10 +1259,7 @@ advancedCli
help: "Run the 'bench-internal' benchmark",
})
.action(async (args) => {
- const myHttpLib = createPlatformHttpLib({
- enableThrottling: false,
- allowHttp: true,
- });
+ const myHttpLib = createPlatformHttpLib();
const res = await createNativeWalletHost2({
// No persistent DB storage.
persistentStoragePath: undefined,