Commit 5ec99ea
pytest: update tests for fulfilled HTLC no-force-close behavior
Update test_htlc_no_force_close and test_htlc_in_timeout to work
with the new behavior where nodes don't force-close when a fulfilled
HTLC hits the deadline but removal is already in progress.
test_htlc_no_force_close: l3 no longer force-closes for the fulfilled
HTLC — it logs a warning instead. l2 still force-closes for the
offered HTLC timeout. Add dev-no-reconnect to prevent l2/l3 from
reconnecting and resolving normally (which would skip the on-chain
scenario the test exercises).
test_htlc_in_timeout: l2 no longer force-closes for the fulfilled
HTLC. Instead, l1 force-closes when the offered HTLC hits its
deadline (cltv_expiry + 1), and l2 claims on-chain using the preimage
from l1's unilateral close (THEIR_UNILATERAL/THEIR_HTLC instead of
OUR_UNILATERAL/THEIR_HTLC). Add dev-no-reconnect to l2 to prevent
automatic reconnection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 066b3c7 commit 5ec99ea
2 files changed
+38
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3887 | 3887 | | |
3888 | 3888 | | |
3889 | 3889 | | |
3890 | | - | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
3891 | 3900 | | |
3892 | 3901 | | |
3893 | 3902 | | |
| |||
3911 | 3920 | | |
3912 | 3921 | | |
3913 | 3922 | | |
3914 | | - | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
3915 | 3926 | | |
3916 | 3927 | | |
3917 | 3928 | | |
3918 | 3929 | | |
3919 | 3930 | | |
3920 | 3931 | | |
3921 | | - | |
3922 | | - | |
| 3932 | + | |
| 3933 | + | |
3923 | 3934 | | |
3924 | | - | |
| 3935 | + | |
| 3936 | + | |
3925 | 3937 | | |
3926 | 3938 | | |
3927 | 3939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
525 | 530 | | |
526 | 531 | | |
527 | 532 | | |
528 | 533 | | |
529 | 534 | | |
530 | | - | |
| 535 | + | |
531 | 536 | | |
532 | 537 | | |
533 | 538 | | |
| |||
556 | 561 | | |
557 | 562 | | |
558 | 563 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
563 | 575 | | |
| 576 | + | |
564 | 577 | | |
565 | | - | |
| 578 | + | |
566 | 579 | | |
567 | | - | |
| 580 | + | |
568 | 581 | | |
569 | 582 | | |
570 | 583 | | |
| |||
0 commit comments