Commit e4c4d94
committed
multi: add new config option
Introduced a new config value `upfront-shutdown-address`
in the `lnd.conf` file. This ensures that channel close
funds are transferred to the specified shutdown address.
The value applies to both the funder and the fundee but
can be overridden by the value specified during
`openchannel` or by the `channel acceptor`.
NOTE: If this field is set when opening a channel with a
peer that does not advertise support for upfront shutdown
feature, the channel open will fail.
Signed-off-by: Nishant Bansal <[email protected]>upfront-shutdown-address
1 parent af6816b commit e4c4d94
File tree
5 files changed
+62
-6
lines changed- funding
- peer
5 files changed
+62
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
540 | 549 | | |
541 | 550 | | |
542 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
576 | 580 | | |
577 | 581 | | |
578 | 582 | | |
| |||
1760 | 1764 | | |
1761 | 1765 | | |
1762 | 1766 | | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1763 | 1779 | | |
1764 | 1780 | | |
1765 | 1781 | | |
1766 | 1782 | | |
1767 | 1783 | | |
1768 | | - | |
| 1784 | + | |
1769 | 1785 | | |
1770 | 1786 | | |
1771 | 1787 | | |
| |||
4849 | 4865 | | |
4850 | 4866 | | |
4851 | 4867 | | |
| 4868 | + | |
| 4869 | + | |
| 4870 | + | |
| 4871 | + | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
| 4878 | + | |
4852 | 4879 | | |
4853 | 4880 | | |
4854 | 4881 | | |
4855 | 4882 | | |
4856 | 4883 | | |
4857 | | - | |
| 4884 | + | |
4858 | 4885 | | |
4859 | 4886 | | |
4860 | 4887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3589 | 3589 | | |
3590 | 3590 | | |
3591 | 3591 | | |
3592 | | - | |
| 3592 | + | |
3593 | 3593 | | |
3594 | | - | |
| 3594 | + | |
3595 | 3595 | | |
3596 | 3596 | | |
3597 | 3597 | | |
| |||
3930 | 3930 | | |
3931 | 3931 | | |
3932 | 3932 | | |
3933 | | - | |
| 3933 | + | |
3934 | 3934 | | |
3935 | 3935 | | |
3936 | | - | |
| 3936 | + | |
3937 | 3937 | | |
3938 | 3938 | | |
3939 | 3939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
592 | 601 | | |
593 | 602 | | |
594 | 603 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
1445 | 1446 | | |
1446 | 1447 | | |
1447 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
1448 | 1458 | | |
1449 | 1459 | | |
1450 | 1460 | | |
| |||
1623 | 1633 | | |
1624 | 1634 | | |
1625 | 1635 | | |
| 1636 | + | |
1626 | 1637 | | |
1627 | 1638 | | |
1628 | 1639 | | |
| |||
0 commit comments