Commit 8fc8b3b
committed
ln+events: deprecate UnknownNextPeer in HTLCHandlingFailureType
This variant of HTLCHandlingFailureType contains information about the
failure cause along with its type - as an UnknownNextPeer is just an
InvalidForward that has the failure type UnknownNextPeer.
Use of the variant is deprecated, and any old events are upgraded to
the new representation. As a result, downgrading nodes will get an
InvalidForward where they otherwise would have had an UnknownNextPeer.
The alternative would be to continue to write the old representation
to prevent this information loss on downgrade, but it comes at the cost
of not being able to remove the UnknownNextPeer variant in future (and
some extra handling code).
The deprecated attribute is not used because it cannot be silenced in
impl_writeable_tlv_based_enum, which uses UnknownNextPeer to remain
downgradable.1 parent d1289ce commit 8fc8b3b
File tree
5 files changed
+24
-12
lines changed- lightning/src
- events
- ln
5 files changed
+24
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
483 | 486 | | |
484 | 487 | | |
485 | 488 | | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| 492 | + | |
| 493 | + | |
489 | 494 | | |
490 | 495 | | |
491 | 496 | | |
| |||
2255 | 2260 | | |
2256 | 2261 | | |
2257 | 2262 | | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
2258 | 2270 | | |
2259 | 2271 | | |
2260 | 2272 | | |
2261 | | - | |
| 2273 | + | |
2262 | 2274 | | |
2263 | 2275 | | |
2264 | 2276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5733 | 5733 | | |
5734 | 5734 | | |
5735 | 5735 | | |
5736 | | - | |
| 5736 | + | |
5737 | 5737 | | |
5738 | 5738 | | |
5739 | 5739 | | |
| |||
5752 | 5752 | | |
5753 | 5753 | | |
5754 | 5754 | | |
5755 | | - | |
| 5755 | + | |
5756 | 5756 | | |
5757 | 5757 | | |
5758 | 5758 | | |
| |||
5932 | 5932 | | |
5933 | 5933 | | |
5934 | 5934 | | |
5935 | | - | |
| 5935 | + | |
5936 | 5936 | | |
5937 | 5937 | | |
5938 | 5938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
| 552 | + | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
| |||
1751 | 1751 | | |
1752 | 1752 | | |
1753 | 1753 | | |
1754 | | - | |
| 1754 | + | |
1755 | 1755 | | |
1756 | 1756 | | |
1757 | 1757 | | |
| |||
1800 | 1800 | | |
1801 | 1801 | | |
1802 | 1802 | | |
1803 | | - | |
| 1803 | + | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | 1806 | | |
| |||
1905 | 1905 | | |
1906 | 1906 | | |
1907 | 1907 | | |
1908 | | - | |
| 1908 | + | |
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1939 | 1939 | | |
1940 | 1940 | | |
1941 | 1941 | | |
1942 | | - | |
| 1942 | + | |
1943 | 1943 | | |
1944 | 1944 | | |
1945 | 1945 | | |
| |||
3406 | 3406 | | |
3407 | 3407 | | |
3408 | 3408 | | |
3409 | | - | |
| 3409 | + | |
3410 | 3410 | | |
3411 | 3411 | | |
3412 | 3412 | | |
| |||
0 commit comments