Skip to content

Carry a configured fee claim into register_node#37

Merged
amackillop merged 1 commit into
lsp-0.7.0_accept-underpaying-htlcs_with_timing_logsfrom
austin_mdk-981_configure-fee-claims
Jun 12, 2026
Merged

Carry a configured fee claim into register_node#37
amackillop merged 1 commit into
lsp-0.7.0_accept-underpaying-htlcs_with_timing_logsfrom
austin_mdk-981_configure-fee-claims

Conversation

@amackillop

Copy link
Copy Markdown

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.

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.
@amackillop amackillop merged commit 48cb27f into lsp-0.7.0_accept-underpaying-htlcs_with_timing_logs Jun 12, 2026
4 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant