Repository navigation
Commit 27d8b10
committed
Allow configuring LSPS2 JIT channel parameters
Allow LSPS2 services to configure dust HTLC exposure and the maximum
force-close avoidance fee separately from regular channels through an
optional LSPS2ChannelConfig in LSPS2ServiceConfig.
Expose only max_dust_htlc_exposure and
force_close_avoidance_max_fee_satoshis. Unset fields inherit the node-wide
configuration. Forwarding fees remain zero, accept_underpaying_htlcs is
not exposed, and the preexisting CLTV defaults and advertisement are
unchanged.
Extend the LSPS2 integration test to check the configured force-close
avoidance fee and zero base forwarding fee.
This change was developed with the assistance of AI tooling (Claude Code).
This change was developed with assistance from OpenAI Codex.1 parent 41c44cd commit 27d8b10
3 files changed
Lines changed: 62 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
110 | 133 | | |
111 | 134 | | |
112 | 135 | | |
| |||
573 | 596 | | |
574 | 597 | | |
575 | 598 | | |
576 | | - | |
577 | | - | |
578 | | - | |
| 599 | + | |
| 600 | + | |
579 | 601 | | |
580 | 602 | | |
581 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
582 | 618 | | |
583 | 619 | | |
584 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
7575 | 7575 | | |
7576 | 7576 | | |
7577 | 7577 | | |
| 7578 | + | |
| 7579 | + | |
| 7580 | + | |
| 7581 | + | |
| 7582 | + | |
7578 | 7583 | | |
7579 | 7584 | | |
7580 | 7585 | | |
| |||
7587 | 7592 | | |
7588 | 7593 | | |
7589 | 7594 | | |
| 7595 | + | |
7590 | 7596 | | |
7591 | 7597 | | |
7592 | 7598 | | |
| |||
7724 | 7730 | | |
7725 | 7731 | | |
7726 | 7732 | | |
| 7733 | + | |
| 7734 | + | |
| 7735 | + | |
| 7736 | + | |
| 7737 | + | |
| 7738 | + | |
| 7739 | + | |
| 7740 | + | |
7727 | 7741 | | |
7728 | 7742 | | |
7729 | 7743 | | |
| |||
7927 | 7941 | | |
7928 | 7942 | | |
7929 | 7943 | | |
| 7944 | + | |
7930 | 7945 | | |
7931 | 7946 | | |
7932 | 7947 | | |
| |||
8400 | 8415 | | |
8401 | 8416 | | |
8402 | 8417 | | |
| 8418 | + | |
8403 | 8419 | | |
8404 | 8420 | | |
8405 | 8421 | | |
| |||
8573 | 8589 | | |
8574 | 8590 | | |
8575 | 8591 | | |
| 8592 | + | |
8576 | 8593 | | |
8577 | 8594 | | |
8578 | 8595 | | |
| |||
8702 | 8719 | | |
8703 | 8720 | | |
8704 | 8721 | | |
| 8722 | + | |
8705 | 8723 | | |
8706 | 8724 | | |
8707 | 8725 | | |
| |||
9823 | 9841 | | |
9824 | 9842 | | |
9825 | 9843 | | |
| 9844 | + | |
9826 | 9845 | | |
9827 | 9846 | | |
9828 | 9847 | | |
| |||
9846 | 9865 | | |
9847 | 9866 | | |
9848 | 9867 | | |
| 9868 | + | |
9849 | 9869 | | |
9850 | 9870 | | |
9851 | 9871 | | |
| |||
10130 | 10150 | | |
10131 | 10151 | | |
10132 | 10152 | | |
| 10153 | + | |
10133 | 10154 | | |
10134 | 10155 | | |
10135 | 10156 | | |
| |||
0 commit comments