aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/bench2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/bench2.ts')
-rw-r--r--packages/taler-harness/src/bench2.ts14
1 files changed, 11 insertions, 3 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts
index ff87da52a..48ac76b9f 100644
--- a/packages/taler-harness/src/bench2.ts
+++ b/packages/taler-harness/src/bench2.ts
@@ -34,6 +34,7 @@ import {
findDenomOrThrow,
refreshCoin,
SynchronousCryptoWorkerFactoryPlain,
+ Wallet,
withdrawCoin,
} from "@gnu-taler/taler-wallet-core";
@@ -56,6 +57,7 @@ export async function runBench2(configJson: any): Promise<void> {
const http = createPlatformHttpLib({
enableThrottling: false,
+ allowHttp: true,
});
const numIter = benchConf.iterations ?? 1;
@@ -84,7 +86,9 @@ export async function runBench2(configJson: any): Promise<void> {
console.log("reserve found");
- const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8`);
+ const d1 = findDenomOrThrow(exchangeInfo, `${curr}:8`, {
+ denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
+ });
for (let j = 0; j < numDeposits; j++) {
console.log("withdrawing coin");
@@ -111,8 +115,12 @@ export async function runBench2(configJson: any): Promise<void> {
});
const refreshDenoms = [
- findDenomOrThrow(exchangeInfo, `${curr}:1`),
- findDenomOrThrow(exchangeInfo, `${curr}:1`),
+ findDenomOrThrow(exchangeInfo, `${curr}:1`, {
+ denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
+ }),
+ findDenomOrThrow(exchangeInfo, `${curr}:1`, {
+ denomselAllowLate: Wallet.defaultConfig.testing.denomselAllowLate,
+ }),
];
console.log("refreshing coin");