Commit 436dc4b
committed
Add funding redeem script to
Original context and motivation comes from here: lightningdevkit/ldk-node#677 (comment)
When splicing-in, the default case is our channel utxo + our wallet utxos
being combined. This works great however, it can give our wallet issues
calculating fees after the fact because our wallet needs to know about
our channel's utxo. We currently have it's outpoint and satoshi value
available, but not its output script so we are unable to construct the
TxOut for the channel. This adds the redeem script to the
`ChannelDetails` and `ChannelPending` event which gives us enough
information to be able to construct it.ChannelDetails and ChannelPending event1 parent 6d9c676 commit 436dc4b
File tree
6 files changed
+57
-5
lines changed- fuzz/src
- lightning/src
- events
- ln
- routing
6 files changed
+57
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1416 | 1420 | | |
1417 | 1421 | | |
1418 | 1422 | | |
| |||
2234 | 2238 | | |
2235 | 2239 | | |
2236 | 2240 | | |
| 2241 | + | |
2237 | 2242 | | |
2238 | 2243 | | |
2239 | 2244 | | |
| |||
2243 | 2248 | | |
2244 | 2249 | | |
2245 | 2250 | | |
| 2251 | + | |
2246 | 2252 | | |
2247 | 2253 | | |
2248 | 2254 | | |
| |||
2815 | 2821 | | |
2816 | 2822 | | |
2817 | 2823 | | |
| 2824 | + | |
2818 | 2825 | | |
2819 | 2826 | | |
2820 | 2827 | | |
2821 | 2828 | | |
2822 | 2829 | | |
2823 | 2830 | | |
2824 | 2831 | | |
| 2832 | + | |
2825 | 2833 | | |
2826 | 2834 | | |
2827 | 2835 | | |
| |||
2831 | 2839 | | |
2832 | 2840 | | |
2833 | 2841 | | |
| 2842 | + | |
2834 | 2843 | | |
2835 | 2844 | | |
2836 | 2845 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
1125 | 1124 | | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1130 | 1135 | | |
1131 | 1136 | | |
1132 | 1137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
453 | 457 | | |
454 | 458 | | |
455 | 459 | | |
| |||
475 | 479 | | |
476 | 480 | | |
477 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
478 | 493 | | |
479 | 494 | | |
480 | 495 | | |
| |||
509 | 524 | | |
510 | 525 | | |
511 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
512 | 530 | | |
513 | 531 | | |
514 | 532 | | |
| |||
583 | 601 | | |
584 | 602 | | |
585 | 603 | | |
| 604 | + | |
586 | 605 | | |
587 | 606 | | |
588 | 607 | | |
| |||
627 | 646 | | |
628 | 647 | | |
629 | 648 | | |
| 649 | + | |
630 | 650 | | |
631 | 651 | | |
632 | 652 | | |
| |||
658 | 678 | | |
659 | 679 | | |
660 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
661 | 685 | | |
662 | 686 | | |
663 | 687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3303 | 3303 | | |
3304 | 3304 | | |
3305 | 3305 | | |
| 3306 | + | |
| 3307 | + | |
3306 | 3308 | | |
3307 | 3309 | | |
3308 | 3310 | | |
| |||
3311 | 3313 | | |
3312 | 3314 | | |
3313 | 3315 | | |
| 3316 | + | |
3314 | 3317 | | |
3315 | 3318 | | |
3316 | 3319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3926 | 3926 | | |
3927 | 3927 | | |
3928 | 3928 | | |
| 3929 | + | |
3929 | 3930 | | |
3930 | 3931 | | |
3931 | 3932 | | |
| |||
3984 | 3985 | | |
3985 | 3986 | | |
3986 | 3987 | | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
3987 | 3992 | | |
3988 | 3993 | | |
3989 | 3994 | | |
| |||
9384 | 9389 | | |
9385 | 9390 | | |
9386 | 9391 | | |
| 9392 | + | |
9387 | 9393 | | |
9388 | 9394 | | |
9389 | 9395 | | |
| |||
9479 | 9485 | | |
9480 | 9486 | | |
9481 | 9487 | | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
9482 | 9492 | | |
9483 | 9493 | | |
9484 | 9494 | | |
| |||
0 commit comments