Commit 51eb743
committed
ln+events: deprecate UnknownNextPeer in HTLCHandlingFailureType
This variant of HTLCHandlingType contains information about the
failure cause along with its type - as an UnknownNextPeer is just an
InvalidForward that has the failure type UnknownNextPeer.
This commit deprecates the variant's use, while still writing it to
disk to allow the option to downgrade.
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 37b7dbe commit 51eb743
File tree
5 files changed
+54
-14
lines changed- lightning/src
- events
- ln
5 files changed
+54
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| 483 | + | |
| 484 | + | |
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
| 491 | + | |
| 492 | + | |
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
| |||
1797 | 1801 | | |
1798 | 1802 | | |
1799 | 1803 | | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
1800 | 1820 | | |
1801 | 1821 | | |
1802 | 1822 | | |
1803 | | - | |
| 1823 | + | |
1804 | 1824 | | |
1805 | 1825 | | |
1806 | 1826 | | |
| |||
2255 | 2275 | | |
2256 | 2276 | | |
2257 | 2277 | | |
2258 | | - | |
| 2278 | + | |
| 2279 | + | |
2259 | 2280 | | |
2260 | 2281 | | |
2261 | 2282 | | |
2262 | | - | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
2263 | 2303 | | |
2264 | 2304 | | |
2265 | 2305 | | |
| |||
| 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