Commit 56a9bf5
Prune locktimed packages when inputs are spent
We have to prune locktimed packages when their inputs are spent,
otherwise the notification of the watched outputs might be missed. This
can lead to locktimed packages with spent inputs being added back to
the pending claim requests in the future, and they are never cleaned
up until node restart.
Resolves: #3859
Conflicts resolved in:
* lightning/src/ln/functional_tests.rs due to upstream changes of
removed code
* lightning/src/ln/monitor_tests.rs due to trivial upstream
changes1 parent 4455505 commit 56a9bf5
File tree
3 files changed
+39
-39
lines changed- lightning/src
- chain
- ln
3 files changed
+39
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| |||
969 | 972 | | |
970 | 973 | | |
971 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
972 | 986 | | |
973 | 987 | | |
974 | 988 | | |
| |||
1104 | 1118 | | |
1105 | 1119 | | |
1106 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1107 | 1128 | | |
1108 | 1129 | | |
1109 | 1130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3329 | 3329 | | |
3330 | 3330 | | |
3331 | 3331 | | |
3332 | | - | |
3333 | | - | |
3334 | | - | |
3335 | | - | |
3336 | | - | |
3337 | | - | |
3338 | | - | |
3339 | | - | |
3340 | | - | |
3341 | | - | |
3342 | | - | |
3343 | | - | |
3344 | | - | |
3345 | | - | |
3346 | | - | |
3347 | | - | |
3348 | | - | |
3349 | | - | |
3350 | | - | |
3351 | | - | |
3352 | | - | |
3353 | | - | |
3354 | | - | |
3355 | | - | |
3356 | | - | |
3357 | | - | |
3358 | | - | |
| 3332 | + | |
| 3333 | + | |
| 3334 | + | |
3359 | 3335 | | |
3360 | 3336 | | |
3361 | 3337 | | |
| |||
3416 | 3392 | | |
3417 | 3393 | | |
3418 | 3394 | | |
3419 | | - | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
| 3398 | + | |
| 3399 | + | |
| 3400 | + | |
| 3401 | + | |
| 3402 | + | |
| 3403 | + | |
| 3404 | + | |
| 3405 | + | |
3420 | 3406 | | |
3421 | 3407 | | |
3422 | 3408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
715 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| |||
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
731 | | - | |
732 | 732 | | |
733 | 733 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 734 | + | |
738 | 735 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | 736 | | |
744 | 737 | | |
745 | 738 | | |
| |||
0 commit comments