make batch withdrawal configurable in benchmarks

This commit is contained in:
Marco Boss 2022-05-10 08:39:35 +02:00
parent 935a119621
commit c02dbc833b
No known key found for this signature in database
GPG Key ID: 89A3EC33C625C3DF
2 changed files with 4 additions and 2 deletions

View File

@ -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, {});
}

View File

@ -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, {});
}