gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-core] branch master updated: fix 5745: add ve


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-core] branch master updated: fix 5745: add version-based cache breaker for /keys and /wire
Date: Fri, 06 Sep 2019 12:34:08 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 4b8b967e fix 5745: add version-based cache breaker for /keys and /wire
4b8b967e is described below

commit 4b8b967e58e9f692a69d70890cc09ec0fc557eb0
Author: Florian Dold <address@hidden>
AuthorDate: Fri Sep 6 12:34:05 2019 +0200

    fix 5745: add version-based cache breaker for /keys and /wire
---
 src/wallet.ts | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/wallet.ts b/src/wallet.ts
index cec656ad..175a6dba 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -130,7 +130,7 @@ interface SpeculativePayData {
  */
 export const WALLET_PROTOCOL_VERSION = "3:0:0";
 
-const WALLET_CACHE_BREAKER = "01";
+const WALLET_CACHE_BREAKER_CLIENT_VERSION = "2";
 
 const builtinCurrencies: CurrencyRecord[] = [
   {
@@ -786,7 +786,10 @@ export class Wallet {
         );
       } else {
         if (uriResult.sessionId) {
-          await this.submitPay(differentPurchase.contractTermsHash, 
uriResult.sessionId);
+          await this.submitPay(
+            differentPurchase.contractTermsHash,
+            uriResult.sessionId,
+          );
         }
         return {
           status: "paid",
@@ -1662,7 +1665,9 @@ export class Wallet {
    */
   async getWireInfo(exchangeBaseUrl: string): Promise<ExchangeWireJson> {
     exchangeBaseUrl = canonicalizeBaseUrl(exchangeBaseUrl);
-    const reqUrl = new URI("wire").absoluteTo(exchangeBaseUrl);
+    const reqUrl = new URI("wire")
+      .absoluteTo(exchangeBaseUrl)
+      .addQuery("cacheBreaker", WALLET_CACHE_BREAKER_CLIENT_VERSION);
     const resp = await this.http.get(reqUrl.href());
 
     if (resp.status !== 200) {
@@ -1967,7 +1972,7 @@ export class Wallet {
     baseUrl = canonicalizeBaseUrl(baseUrl);
     const keysUrl = new URI("keys")
       .absoluteTo(baseUrl)
-      .addQuery("cacheBreaker", WALLET_CACHE_BREAKER);
+      .addQuery("cacheBreaker", WALLET_CACHE_BREAKER_CLIENT_VERSION);
     const keysResp = await this.http.get(keysUrl.href());
     if (keysResp.status !== 200) {
       throw Error("/keys request failed");

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]