[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: don't always for
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: don't always force updating with updateExchangeEntry request |
Date: |
Tue, 23 Jan 2024 10:43:49 +0100 |
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 5fef003f6 wallet-core: don't always force updating with
updateExchangeEntry request
5fef003f6 is described below
commit 5fef003f6ae1eac9246cc40fc9cbbd3399f675e6
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jan 23 10:43:46 2024 +0100
wallet-core: don't always force updating with updateExchangeEntry request
---
packages/taler-util/src/wallet-types.ts | 2 ++
packages/taler-wallet-core/src/wallet.ts | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/taler-util/src/wallet-types.ts
b/packages/taler-util/src/wallet-types.ts
index 12231fb2d..b1fbd3d43 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -1695,12 +1695,14 @@ export const codecForAddExchangeRequest = ():
Codec<AddExchangeRequest> =>
export interface UpdateExchangeEntryRequest {
exchangeBaseUrl: string;
+ force?: boolean;
}
export const codecForUpdateExchangeEntryRequest =
(): Codec<UpdateExchangeEntryRequest> =>
buildCodecForObject<UpdateExchangeEntryRequest>()
.property("exchangeBaseUrl", codecForString())
+ .property("force", codecOptional(codecForBoolean()))
.build("UpdateExchangeEntryRequest");
export interface GetExchangeResourcesRequest {
diff --git a/packages/taler-wallet-core/src/wallet.ts
b/packages/taler-wallet-core/src/wallet.ts
index 51706fed3..831f72259 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -962,7 +962,7 @@ async function dispatchRequestInternal<Op extends
WalletApiOperation>(
case WalletApiOperation.UpdateExchangeEntry: {
const req = codecForUpdateExchangeEntryRequest().decode(payload);
await fetchFreshExchange(ws, req.exchangeBaseUrl, {
- forceUpdate: true,
+ forceUpdate: !!req.force,
});
return {};
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: don't always force updating with updateExchangeEntry request,
gnunet <=