Commit d7d9eb9
committed
fix: BOLT12 arm of UnifiedPayment::send returns DuplicatePayment/PersistenceFailed errors
The BOLT12 arm used .map_err() + if let Ok, so DuplicatePayment and
PersistenceFailed fell through to BOLT11/onchain — risking double payment.
Now treats both as terminal, mirroring the BOLT11 fix in #1038.
Fixes: #1060
AI-assisted: generated by Sera (Hermes Agent), verified manually.
Signed-off-by: Bartok9 <259807879+Bartok9@users.noreply.github.com>1 parent 685d038 commit d7d9eb9
1 file changed
Lines changed: 22 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 312 | + | |
317 | 313 | | |
318 | | - | |
319 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
320 | 335 | | |
321 | 336 | | |
322 | 337 | | |
| |||
0 commit comments