Commit 7078bba
Remove funding script return value from ChannelMonitor::get_funding_txo
It's not needed except for one place where we can just access the field
directly, so we can avoid the allocation on each call. For API
consumers, they may still access the funding script via
`ChannelMonitor::get_funding_script`.1 parent e86a907 commit 7078bba
File tree
4 files changed
+38
-29
lines changed- lightning/src
- chain
- ln
- util
4 files changed
+38
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
| 519 | + | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
645 | | - | |
| 645 | + | |
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
| 658 | + | |
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| |||
825 | 825 | | |
826 | 826 | | |
827 | 827 | | |
828 | | - | |
| 828 | + | |
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
| 881 | + | |
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
1577 | | - | |
1578 | | - | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
1579 | 1584 | | |
1580 | 1585 | | |
1581 | 1586 | | |
| |||
1599 | 1604 | | |
1600 | 1605 | | |
1601 | 1606 | | |
1602 | | - | |
1603 | | - | |
| 1607 | + | |
| 1608 | + | |
1604 | 1609 | | |
1605 | 1610 | | |
1606 | 1611 | | |
| |||
2061 | 2066 | | |
2062 | 2067 | | |
2063 | 2068 | | |
2064 | | - | |
| 2069 | + | |
2065 | 2070 | | |
2066 | 2071 | | |
2067 | 2072 | | |
| |||
2070 | 2075 | | |
2071 | 2076 | | |
2072 | 2077 | | |
2073 | | - | |
| 2078 | + | |
2074 | 2079 | | |
2075 | 2080 | | |
2076 | 2081 | | |
| |||
3296 | 3301 | | |
3297 | 3302 | | |
3298 | 3303 | | |
3299 | | - | |
3300 | | - | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
3301 | 3310 | | |
3302 | 3311 | | |
3303 | 3312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8131 | 8131 | | |
8132 | 8132 | | |
8133 | 8133 | | |
8134 | | - | |
| 8134 | + | |
8135 | 8135 | | |
8136 | 8136 | | |
8137 | 8137 | | |
| |||
13365 | 13365 | | |
13366 | 13366 | | |
13367 | 13367 | | |
13368 | | - | |
| 13368 | + | |
13369 | 13369 | | |
13370 | 13370 | | |
13371 | 13371 | | |
| |||
13576 | 13576 | | |
13577 | 13577 | | |
13578 | 13578 | | |
13579 | | - | |
| 13579 | + | |
13580 | 13580 | | |
13581 | 13581 | | |
13582 | 13582 | | |
| |||
13741 | 13741 | | |
13742 | 13742 | | |
13743 | 13743 | | |
13744 | | - | |
| 13744 | + | |
13745 | 13745 | | |
13746 | 13746 | | |
13747 | 13747 | | |
| |||
13821 | 13821 | | |
13822 | 13822 | | |
13823 | 13823 | | |
13824 | | - | |
| 13824 | + | |
13825 | 13825 | | |
13826 | 13826 | | |
13827 | 13827 | | |
| |||
13934 | 13934 | | |
13935 | 13935 | | |
13936 | 13936 | | |
13937 | | - | |
| 13937 | + | |
13938 | 13938 | | |
13939 | 13939 | | |
13940 | 13940 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
| 359 | + | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
| 620 | + | |
| 621 | + | |
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
1222 | | - | |
| 1222 | + | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| |||
1238 | 1238 | | |
1239 | 1239 | | |
1240 | 1240 | | |
1241 | | - | |
| 1241 | + | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
| |||
1433 | 1433 | | |
1434 | 1434 | | |
1435 | 1435 | | |
1436 | | - | |
| 1436 | + | |
1437 | 1437 | | |
1438 | 1438 | | |
1439 | 1439 | | |
| |||
0 commit comments