Commit 06509b7
committed
Carry a configured fee claim into register_node
Bump the rust-lightning pin to 9b5f40f00, which brings the fee-claim
wire field, the LSP-side verifier, and the new register_node parameter.
That bump forces three coupled changes, so they land together.
Client side: LSPS4ClientConfig and the internal LSPS4Client now hold an
optional fee_claim, set_liquidity_source_lsps4 takes it as a third
argument, and lsps4_register_node relays it on every registration. mdkd
is the only caller, so widening the signature is contained. The value is
opaque here, a lowercase-hex signed grant that only the LSP decodes.
Service side: the bumped LdkLSPS4ServiceConfig grew an issuer_pubkeys
field with no Default, so the struct literal no longer compiles without
naming it. LSPS4ServiceConfig surfaces it; an empty Vec (the inert
default for a node acting only as a client) honours no claim and keeps
every peer on the standard policy.
With no claim configured the request carries None, the LSP resolves the
standard policy, and behaviour is unchanged.1 parent a3226be commit 06509b7
3 files changed
Lines changed: 66 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
| 492 | + | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | | - | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
1877 | 1881 | | |
1878 | 1882 | | |
1879 | 1883 | | |
| |||
2152 | 2156 | | |
2153 | 2157 | | |
2154 | 2158 | | |
2155 | | - | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
2156 | 2187 | | |
2157 | 2188 | | |
2158 | 2189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
189 | 193 | | |
190 | 194 | | |
191 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
| |||
284 | 292 | | |
285 | 293 | | |
286 | 294 | | |
287 | | - | |
| 295 | + | |
288 | 296 | | |
289 | 297 | | |
290 | 298 | | |
291 | 299 | | |
292 | 300 | | |
293 | 301 | | |
294 | 302 | | |
| 303 | + | |
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
| |||
306 | 315 | | |
307 | 316 | | |
308 | 317 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
313 | 321 | | |
314 | | - | |
| 322 | + | |
| 323 | + | |
315 | 324 | | |
316 | 325 | | |
317 | 326 | | |
| |||
1684 | 1693 | | |
1685 | 1694 | | |
1686 | 1695 | | |
1687 | | - | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
1688 | 1699 | | |
1689 | 1700 | | |
1690 | 1701 | | |
| |||
0 commit comments