aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-cli/src/bench1.ts3
-rw-r--r--packages/taler-wallet-cli/src/bench3.ts3
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/src/bench1.ts b/packages/taler-wallet-cli/src/bench1.ts
index d7c35136c..f64bf750f 100644
--- a/packages/taler-wallet-cli/src/bench1.ts
+++ b/packages/taler-wallet-cli/src/bench1.ts
@@ -64,6 +64,7 @@ export async function runBench1(configJson: any): Promise<void> {
} else {
logger.info("not trusting exchange (validating signatures)");
}
+ const batchWithdrawal = !!process.env["TALER_WALLET_BATCH_WITHDRAWAL"];
let wallet = {} as Wallet;
let getDbStats: () => AccessStats;
@@ -88,7 +89,7 @@ export async function runBench1(configJson: any): Promise<void> {
if (trustExchange) {
wallet.setInsecureTrustExchange();
}
- wallet.setBatchWithdrawal(true);
+ wallet.setBatchWithdrawal(batchWithdrawal);
await wallet.client.call(WalletApiOperation.InitWallet, {});
}
diff --git a/packages/taler-wallet-cli/src/bench3.ts b/packages/taler-wallet-cli/src/bench3.ts
index 1d3c86cd6..6041c525c 100644
--- a/packages/taler-wallet-cli/src/bench3.ts
+++ b/packages/taler-wallet-cli/src/bench3.ts
@@ -71,6 +71,7 @@ export async function runBench3(configJson: any): Promise<void> {
} else {
logger.info("not trusting exchange (validating signatures)");
}
+ const batchWithdrawal = !!process.env["TALER_WALLET_BATCH_WITHDRAWAL"];
let wallet = {} as Wallet;
let getDbStats: () => AccessStats;
@@ -95,7 +96,7 @@ export async function runBench3(configJson: any): Promise<void> {
if (trustExchange) {
wallet.setInsecureTrustExchange();
}
- wallet.setBatchWithdrawal(true);
+ wallet.setBatchWithdrawal(batchWithdrawal);
await wallet.client.call(WalletApiOperation.InitWallet, {});
}