gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] 01/02: default exchange


From: gnunet
Subject: [taler-wallet-core] 01/02: default exchange
Date: Wed, 17 Aug 2022 21:12:54 +0200

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

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

commit 17e627c2f024f6a4fe2b40b370ab1c010488ccc3
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Aug 16 12:59:17 2022 -0300

    default exchange
---
 packages/taler-wallet-core/src/wallet.ts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index a74c6c17..1b6b5669 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -214,6 +214,8 @@ const builtinAuditors: AuditorTrustRecord[] = [
   },
 ];
 
+const builtinExchanges: string[] = ["https://exchange.demo.taler.net/";];
+
 const logger = new Logger("wallet.ts");
 
 async function getWithdrawalDetailsForAmount(
@@ -453,6 +455,9 @@ async function fillDefaults(ws: InternalWalletState): 
Promise<void> {
         for (const c of builtinAuditors) {
           await tx.auditorTrustStore.put(c);
         }
+        for (const url of builtinExchanges) {
+          await updateExchangeFromUrl(ws, url, { forceNow: true });
+        }
       }
     });
 }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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