diff options
author | Florian Dold <florian@dold.me> | 2021-12-08 16:23:00 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-12-08 16:23:00 +0100 |
commit | 684c53e105e2d4b4e07811423e409ff4735e7297 (patch) | |
tree | 1497074e01b101d106ecfb8195f67fe45fc84c21 /packages/taler-wallet-core/src/wallet.ts | |
parent | 09aeaf753af3234462d42c1cc96037e726312a81 (diff) | |
download | wallet-core-684c53e105e2d4b4e07811423e409ff4735e7297.tar.xz |
wallet-core: trust exchange for exchange benchmark
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r-- | packages/taler-wallet-core/src/wallet.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index 04213ddc9..1d809afa8 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -1037,6 +1037,14 @@ export class Wallet { return this._client; } + /** + * Trust the exchange, do not validate signatures. + * Only used to benchmark the exchange. + */ + setInsecureTrustExchange() { + this.ws.insecureTrustExchange = true; + } + static async create( db: DbAccess<typeof WalletStoresV1>, http: HttpRequestLibrary, @@ -1089,6 +1097,8 @@ class InternalWalletStateImpl implements InternalWalletState { merchantInfoCache: Record<string, MerchantInfo> = {}; + insecureTrustExchange: boolean = false; + timerGroup: TimerGroup = new TimerGroup(); latch = new AsyncCondition(); stopped = false; |