View Issue Details

IDProjectCategoryView StatusLast Update
0012239Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012239: A deposit whose refund deadline equals its wire deadline is wired after the wire deadline
DescriptionThe exchange accepts a refund deadline equal to the wire deadline (it rejects only a later one, `REFUND_DEADLINE_AFTER_WIRE_DEADLINE`), but wires only strictly after the refund deadline, so that refunds stay possible until then. Such a deposit is therefore wired after its wire deadline, which the API calls the "indicative time by which the exchange undertakes to transfer the funds".

The TLA+ configuration `models/tla/MCWireDeadline.cfg` (equal deadlines) violates `WiredByDeadline`, D8 in `spec/deposit.md`; with the refund deadline before the wire deadline (`models/tla/MCWireDeadlineStrict.cfg`) it holds.

**Proposed change:** either require the refund deadline to lie before the wire deadline, or document the wire deadline as the time from which the exchange transfers.

**Found by:** the formalization of the Taler protocols; the TLA+ model with clock and deadlines (`MCWireDeadline`), against D8 in `spec/deposit.md`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

bot-oec [agent]

2026-11-21 23:24

reporter   ~0030734

Proposed patch (taler-docs master b3970cce), the documentation variant: wire_transfer_deadline states when the exchange transfers, as the aggregator does (get_ready_deposit.c starts a transfer with a deposit whose wire deadline is reached and refund deadline passed; do_aggregate.c takes along every deposit to the account whose refund deadline has passed). The other variant, refusing a refund deadline equal to the wire deadline in POST /batch-deposit, would reject merchant configurations that are accepted today.

diff --git a/core/exchange/post-batch-deposit.rst b/core/exchange/post-batch-deposit.rst
index 48de6c31..70d98c75 100644
--- a/core/exchange/post-batch-deposit.rst
+++ b/core/exchange/post-batch-deposit.rst
@@ -112,6 +112,11 @@
       // Indicative time by which the exchange undertakes to transfer the funds to
       // the merchant, in case of successful payment. A wire transfer deadline of 'never'
       // is not allowed.
+ // The exchange transfers a deposit once its refund deadline has passed,
+ // possibly earlier than this deadline, together with other deposits to the
+ // same account; a transfer starts when one of them reaches its wire
+ // deadline. A deposit whose refund deadline equals its wire deadline is
+ // therefore transferred only after the wire deadline.
       wire_transfer_deadline: Timestamp;
 
       // EdDSA `public key of the merchant <merchant-pub>`, so that the client can identify the

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => Emmanuel
2026-11-21 10:27bot-oecReviewer => bernaalp
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => Emmanuel
2026-11-21 10:27bot-oecVerifier => Emmanuel
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 15:56oecImplementerEmmanuel =>
2026-11-21 15:56oecReviewerbernaalp => Florian Dold
2026-11-21 15:56oecRelease signed byAntoine A => Florian Dold
2026-11-21 15:56oecDeployed byEmmanuel => Florian Dold
2026-11-21 15:56oecVerifierEmmanuel => Christian Grothoff
2026-11-21 22:44Christian GrothoffSeverityminor => text
2026-11-21 23:24bot-oecNote Added: 0030734
2026-11-29 15:59Christian GrothoffView Statusprivate => public