diff options
| author | Florian Dold <florian.dold@gmail.com> | 2019-08-31 22:07:16 +0200 | 
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2019-08-31 22:07:16 +0200 | 
| commit | aa36fce8a0d1ead29709444527c2d1a4ba9491a6 (patch) | |
| tree | 2dc15f013d1bd72949175e6e3ce1540af08013c8 /src/wallet.ts | |
| parent | 68aa1e9ece96ced961a03a4f3e72d2c354386d60 (diff) | |
bump package.json version
Diffstat (limited to 'src/wallet.ts')
| -rw-r--r-- | src/wallet.ts | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet.ts b/src/wallet.ts index 825763173..3785f912e 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -132,6 +132,8 @@ interface SpeculativePayData {   */  export const WALLET_PROTOCOL_VERSION = "3:0:0"; +const WALLET_CACHE_BREAKER="01"; +  const builtinCurrencies: CurrencyRecord[] = [    {      auditors: [ @@ -1953,7 +1955,7 @@ export class Wallet {     */    async updateExchangeFromUrl(baseUrl: string): Promise<ExchangeRecord> {      baseUrl = canonicalizeBaseUrl(baseUrl); -    const keysUrl = new URI("keys").absoluteTo(baseUrl); +    const keysUrl = new URI("keys").absoluteTo(baseUrl).addQuery("cacheBreaker", WALLET_CACHE_BREAKER);      const keysResp = await this.http.get(keysUrl.href());      if (keysResp.status !== 200) {        throw Error("/keys request failed");  | 
