Commit 60057a2
committed
Introduce recurrence state-update logic
This commit adds the final piece of the payee-side recurrence flow:
updating the internal `next_payable_counter` once a recurring payment
has been successfully claimed.
The update is performed immediately before emitting the
`PaymentClaimed` event, ensuring the counter is advanced only after the
payment is fully completed and acknowledged by the node. This provides a
clear correctness boundary and avoids premature state transitions.
The approach is intentionally conservative for this PoC. Future
refinements may place the update earlier in the pipeline or integrate it
more tightly with the payment-claim flow, but the current design offers
simple and reliable semantics.1 parent 0eb94f4 commit 60057a2
1 file changed
+28
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
| 95 | + | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
| |||
9514 | 9513 | | |
9515 | 9514 | | |
9516 | 9515 | | |
| 9516 | + | |
| 9517 | + | |
| 9518 | + | |
| 9519 | + | |
| 9520 | + | |
| 9521 | + | |
| 9522 | + | |
| 9523 | + | |
| 9524 | + | |
| 9525 | + | |
| 9526 | + | |
| 9527 | + | |
| 9528 | + | |
| 9529 | + | |
| 9530 | + | |
| 9531 | + | |
| 9532 | + | |
| 9533 | + | |
| 9534 | + | |
| 9535 | + | |
| 9536 | + | |
| 9537 | + | |
| 9538 | + | |
| 9539 | + | |
| 9540 | + | |
| 9541 | + | |
9517 | 9542 | | |
9518 | 9543 | | |
9519 | 9544 | | |
| |||
0 commit comments