diff options
author | Marco Boss <bossm8@bfh.ch> | 2022-05-10 08:39:35 +0200 |
---|---|---|
committer | Marco Boss <bossm8@bfh.ch> | 2022-05-10 08:39:35 +0200 |
commit | c02dbc833bc384b72e5b18450a47ae2b212b0a8e (patch) | |
tree | 2eb5c070d13ac82352977599b31a221033ddbc35 /packages/taler-wallet-cli | |
parent | 935a119621a9ff7a79c410d6cc1bf0c9daa89216 (diff) |
make batch withdrawal configurable in benchmarks
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/bench1.ts | 3 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/bench3.ts | 3 |
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, {}); } |