Carry a configured fee claim into register_node#37
Merged
amackillop merged 1 commit intoJun 12, 2026
Conversation
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.
48cb27f
into
lsp-0.7.0_accept-underpaying-htlcs_with_timing_logs
4 of 34 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.