Commit 22eabde
committed
Include invreq in payment onion when sending async payments
Past commits have set us up to include invoice requests in outbound async
payment onions. Here we actually pull the invoice request from where it's
stored in outbound_payments and pass it into the correct utility for inclusion
in the onion on initial send.
Per <lightning/bolts#1149>, when paying a static
invoice we need to include our original invoice request in the HTLC onion since
the recipient wouldn't have received it previously.1 parent 2996180 commit 22eabde
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
960 | 965 | | |
961 | 966 | | |
962 | 967 | | |
963 | 968 | | |
964 | 969 | | |
| 970 | + | |
965 | 971 | | |
966 | 972 | | |
967 | | - | |
968 | | - | |
| 973 | + | |
| 974 | + | |
969 | 975 | | |
970 | 976 | | |
971 | 977 | | |
| |||
0 commit comments