diff options
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; |