diff options
Diffstat (limited to 'packages/taler-wallet-core/src/operations')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pending.ts | 3 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/refresh.ts | 5 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/pending.ts b/packages/taler-wallet-core/src/operations/pending.ts index 8cbc5e569..e24e8fc4e 100644 --- a/packages/taler-wallet-core/src/operations/pending.ts +++ b/packages/taler-wallet-core/src/operations/pending.ts @@ -92,7 +92,8 @@ async function gatherExchangePending( }, }); } - if (e.details && e.details.nextUpdateTime.t_ms < now.t_ms) { + const keysUpdateRequired = e.details && e.details.nextUpdateTime.t_ms < now.t_ms; + if (keysUpdateRequired) { resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, diff --git a/packages/taler-wallet-core/src/operations/refresh.ts b/packages/taler-wallet-core/src/operations/refresh.ts index 770c67da6..6c1e643a6 100644 --- a/packages/taler-wallet-core/src/operations/refresh.ts +++ b/packages/taler-wallet-core/src/operations/refresh.ts @@ -634,3 +634,8 @@ export async function createRefreshGroup( refreshGroupId, }; } + +export async function autoRefresh( + ws: InternalWalletState, + exchangeBaseUrl: string, +): Promise<void> {} diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index c719f7ab8..4070e39f4 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -620,6 +620,8 @@ async function processWithdrawGroupImpl( return; } + await updateExchangeFromUrl(ws, withdrawalGroup.exchangeBaseUrl); + const numTotalCoins = withdrawalGroup.denomsSel.selectedDenoms .map((x) => x.count) .reduce((a, b) => a + b); |