Commit fd8846b
committed
Apply MPP receive timeout to keysend payments
Incomplete keysend MPPs skipped the receive timeout path,
allowing partial payments to hold HTLC slots until CLTV
expiry instead of failing after `MPP_TIMEOUT_TICKS`.
Apply the existing `total_mpp_amount_msat` completeness
check to all MPP receives and add a regression test
covering the keysend case.
The timeout logic was originally added only for
invoice-backed MPPs in 2022, and that invoice-only
guard remained when receive-side MPP keysend support
landed in 2023, leaving this gap latent until now.
Co-Authored-By: HAL 90001 parent ed02087 commit fd8846b
2 files changed
Lines changed: 60 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8878 | 8878 | | |
8879 | 8879 | | |
8880 | 8880 | | |
8881 | | - | |
8882 | | - | |
8883 | | - | |
8884 | | - | |
8885 | | - | |
8886 | | - | |
8887 | | - | |
8888 | | - | |
8889 | | - | |
8890 | | - | |
8891 | | - | |
8892 | | - | |
8893 | | - | |
8894 | | - | |
8895 | | - | |
8896 | | - | |
8897 | | - | |
8898 | | - | |
8899 | | - | |
8900 | | - | |
8901 | | - | |
| 8881 | + | |
| 8882 | + | |
| 8883 | + | |
| 8884 | + | |
| 8885 | + | |
| 8886 | + | |
| 8887 | + | |
| 8888 | + | |
| 8889 | + | |
| 8890 | + | |
| 8891 | + | |
| 8892 | + | |
| 8893 | + | |
| 8894 | + | |
| 8895 | + | |
| 8896 | + | |
| 8897 | + | |
| 8898 | + | |
8902 | 8899 | | |
8903 | 8900 | | |
8904 | 8901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
| |||
365 | 369 | | |
366 | 370 | | |
367 | 371 | | |
368 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
369 | 388 | | |
370 | 389 | | |
371 | 390 | | |
| |||
414 | 433 | | |
415 | 434 | | |
416 | 435 | | |
417 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
418 | 447 | | |
419 | 448 | | |
420 | 449 | | |
| |||
428 | 457 | | |
429 | 458 | | |
430 | 459 | | |
431 | | - | |
432 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
433 | 468 | | |
434 | 469 | | |
435 | 470 | | |
| |||
0 commit comments