Commit 2ea54b8
committed
Introduce custom TLVs in
Custom TLVs let the payer attach arbitrary data to the onion packet,
enabling everything from richer metadata to custom authentication on
the payee's side.
Until now, this flexibility existed only through `send_payment`. The
simpler `pay_for_bolt11_invoice` API offered no way to pass custom
TLVs, limiting its usefulness in flows that rely on additional context.
This commit adds custom TLV support to `pay_for_bolt11_invoice`,
bringing it to feature parity.pay_for_bolt11_invoice
1 parent de384ff commit 2ea54b8
File tree
6 files changed
+34
-5
lines changed- lightning-liquidity/tests
- lightning/src/ln
6 files changed
+34
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1221 | 1221 | | |
1222 | 1222 | | |
1223 | 1223 | | |
| 1224 | + | |
1224 | 1225 | | |
1225 | 1226 | | |
1226 | 1227 | | |
| |||
1694 | 1695 | | |
1695 | 1696 | | |
1696 | 1697 | | |
| 1698 | + | |
1697 | 1699 | | |
1698 | 1700 | | |
1699 | 1701 | | |
| |||
1885 | 1887 | | |
1886 | 1888 | | |
1887 | 1889 | | |
| 1890 | + | |
1888 | 1891 | | |
1889 | 1892 | | |
1890 | 1893 | | |
| |||
2222 | 2225 | | |
2223 | 2226 | | |
2224 | 2227 | | |
| 2228 | + | |
2225 | 2229 | | |
2226 | 2230 | | |
2227 | 2231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| 128 | + | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| |||
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2272 | 2272 | | |
2273 | 2273 | | |
2274 | 2274 | | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
2275 | 2278 | | |
2276 | | - | |
| 2279 | + | |
2277 | 2280 | | |
2278 | 2281 | | |
2279 | 2282 | | |
| |||
5542 | 5545 | | |
5543 | 5546 | | |
5544 | 5547 | | |
5545 | | - | |
| 5548 | + | |
| 5549 | + | |
5546 | 5550 | | |
5547 | 5551 | | |
5548 | 5552 | | |
5549 | 5553 | | |
5550 | 5554 | | |
5551 | 5555 | | |
5552 | 5556 | | |
| 5557 | + | |
5553 | 5558 | | |
5554 | 5559 | | |
5555 | 5560 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
714 | 721 | | |
715 | 722 | | |
716 | 723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
546 | 548 | | |
547 | 549 | | |
548 | 550 | | |
| |||
919 | 921 | | |
920 | 922 | | |
921 | 923 | | |
| 924 | + | |
922 | 925 | | |
923 | 926 | | |
924 | 927 | | |
| |||
942 | 945 | | |
943 | 946 | | |
944 | 947 | | |
945 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
946 | 951 | | |
947 | 952 | | |
948 | 953 | | |
| |||
1061 | 1066 | | |
1062 | 1067 | | |
1063 | 1068 | | |
| 1069 | + | |
1064 | 1070 | | |
1065 | 1071 | | |
1066 | 1072 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5400 | 5400 | | |
5401 | 5401 | | |
5402 | 5402 | | |
5403 | | - | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
| 5406 | + | |
5404 | 5407 | | |
5405 | 5408 | | |
5406 | 5409 | | |
| |||
0 commit comments