Skip to content

Commit d5b02a8

Browse files
docs: update v0.21 release notes
1 parent 72d77eb commit d5b02a8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/release-notes/release-notes-0.21.0.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@
7575

7676
## Breaking Changes
7777

78+
* Added [duplicate safety to `switch.SendHTLC`](https://github.com/lightningnetwork/lnd/pull/10049). This method will no longer
79+
forward an onion with the same attempt ID twice without the result for a given
80+
ID having been cleaned from the network result store. This ensures "at most
81+
once" delivery and request processing of a given HTLC attempt, allowing a
82+
remote router or rpc client to safely retry htlc dispatch requests without
83+
creating duplicate attempts. This extends the more narrow duplicate safety
84+
already provided by the Switch’s `CircuitMap`.
85+
86+
* The `ChannelRouter` has been updated to robustly handle the new error contract
87+
from the idempotent `switch.SendHTLC` function. When faced with a persistent
88+
and ambiguous dispatch error, the router will now prioritize fund safety by
89+
halting the payment's life-cycle manager. This prevents a class of bugs where
90+
an ambiguous error could be misinterpreted, potentially leading to a duplicate
91+
payment. Final resolution of the ambiguous attempt is safely deferred to the
92+
router's attempt resumption logic on restart.
93+
94+
7895
## Performance Improvements
7996

8097
## Deprecations

0 commit comments

Comments
 (0)