taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 853ee3d2a61520048a9ede2d1f74f8efcd10cd12
parent 9208f77d20e1b50f3dedd0d38da6c3bb79969c2e
Author: Florian Dold <florian@dold.me>
Date:   Mon,  1 Jun 2026 13:40:29 +0200

wallet-core: increase fallback for default peer push expiration to 1 week

Diffstat:
Mpackages/taler-util/src/types-taler-wallet.ts | 2+-
Mpackages/taler-wallet-core/src/pay-peer-push-debit.ts | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-util/src/types-taler-wallet.ts b/packages/taler-util/src/types-taler-wallet.ts @@ -3482,7 +3482,7 @@ export interface CheckPeerPushDebitOkResponse { /** * Default expiration, as given by the exchange - * (or 1d if the exchange does not specify it). + * (or 1 week if the exchange does not specify it). */ defaultExpiration: TalerProtocolDuration; } diff --git a/packages/taler-wallet-core/src/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/pay-peer-push-debit.ts @@ -414,7 +414,7 @@ async function getDefaultPeerPushExpiration( wex: WalletExecutionContext, exchangeBaseUrl: string, ): Promise<TalerProtocolDuration> { - const d = Duration.toTalerProtocolDuration(Duration.fromSpec({ days: 1 })); + const d = Duration.toTalerProtocolDuration(Duration.fromSpec({ days: 7 })); return await wex.runLegacyWalletDbTx(async (tx) => { const ex = await getExchangeDetailsInTx(tx, exchangeBaseUrl); return ex?.defaultPeerPushExpiration ?? d;