Commit b94b182
committed
Allow setting a ChannelConfig for LSPS2 JIT channels
When acting as an LSPS2 service, we'd previously always reuse the
node-wide configuration for the JIT channels we open towards clients,
while hard-coding their forwarding fees to zero.
Here, we add an optional channel_config field to LSPS2ServiceConfig
that allows configuring the JIT channels separately from regular
channels. If unset, we retain the previous behavior, i.e., zero
forwarding fees, as we're compensated via the channel opening fee.
This resolves the TODO to revisit the hard-coded zero-fee decision.
This change was developed with the assistance of AI tooling (Claude Code).1 parent dc4fa49 commit b94b182
2 files changed
Lines changed: 44 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
| |||
487 | 497 | | |
488 | 498 | | |
489 | 499 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
495 | 511 | | |
496 | 512 | | |
497 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
2787 | 2789 | | |
2788 | 2790 | | |
2789 | 2791 | | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
2790 | 2799 | | |
2791 | 2800 | | |
2792 | 2801 | | |
| |||
2799 | 2808 | | |
2800 | 2809 | | |
2801 | 2810 | | |
| 2811 | + | |
2802 | 2812 | | |
2803 | 2813 | | |
2804 | 2814 | | |
| |||
2890 | 2900 | | |
2891 | 2901 | | |
2892 | 2902 | | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
2893 | 2911 | | |
2894 | 2912 | | |
2895 | 2913 | | |
| |||
3118 | 3136 | | |
3119 | 3137 | | |
3120 | 3138 | | |
| 3139 | + | |
3121 | 3140 | | |
3122 | 3141 | | |
3123 | 3142 | | |
| |||
3293 | 3312 | | |
3294 | 3313 | | |
3295 | 3314 | | |
| 3315 | + | |
3296 | 3316 | | |
3297 | 3317 | | |
3298 | 3318 | | |
| |||
4092 | 4112 | | |
4093 | 4113 | | |
4094 | 4114 | | |
| 4115 | + | |
4095 | 4116 | | |
4096 | 4117 | | |
4097 | 4118 | | |
| |||
4115 | 4136 | | |
4116 | 4137 | | |
4117 | 4138 | | |
| 4139 | + | |
4118 | 4140 | | |
4119 | 4141 | | |
4120 | 4142 | | |
| |||
0 commit comments