Skip to content

Expose feeClaim on MdkNodeOptions - #46

Merged
amackillop merged 2 commits into
mainfrom
austin/mdk-1271/fee-claim
Jul 29, 2026
Merged

Expose feeClaim on MdkNodeOptions#46
amackillop merged 2 commits into
mainfrom
austin/mdk-1271/fee-claim

Conversation

@amackillop

Copy link
Copy Markdown
Contributor

The ldk-node bump to f43d869 (0.1.87) added the fee_claim parameter to set_liquidity_source_lsps4 but pinned it to None. This threads it from a new optional MdkNodeOptions field instead, so a consumer can present a signed LSPS4 fee claim at registration. agent-wallet is the first consumer (MDK-1271, 0.5% grant); merchant checkout callers that omit the field are byte-for-byte unchanged on the wire.

index.d.ts is regenerated by napi build; besides feeClaim it picks up two doc comments that had drifted since the last regen (startReceiving, getMaxSendable).

The ldk-node bump to f43d869 (0.1.87) added the fee_claim parameter
to set_liquidity_source_lsps4 but pinned it to None. This threads it
from a new optional MdkNodeOptions field instead, so a consumer can
present a signed LSPS4 fee claim at registration. agent-wallet is the
first consumer (MDK-1271, 0.5% grant); merchant checkout callers that
omit the field are byte-for-byte unchanged on the wire.

index.d.ts is regenerated by napi build; besides feeClaim it picks up
two doc comments that had drifted since the last regen (startReceiving,
getMaxSendable).
CI's clippy moved to 1.97, which now flags the outer
match-Some-else-return-None in next_event (pre-existing code, first
CI run since the toolchain moved). Mechanical: the suggested `?`
transform plus the rustfmt arm collapse it enables; `git diff -w` is
three hunks. No behavior change.
@amackillop
amackillop merged commit c87b548 into main Jul 29, 2026
12 checks passed
@amackillop
amackillop deleted the austin/mdk-1271/fee-claim branch July 29, 2026 18:34
amackillop added a commit that referenced this pull request Jul 29, 2026
The dev shell and CI resolved toolchains from independent clocks:
fenix "stable" moves on nix flake update (was 1.95), while
dtolnay/rust-toolchain@stable moves on every Rust release (1.97).
The gap meant CI could lint code the dev shell's clippy had never
seen, which is exactly how PR #46 went red on untouched code.

rust-toolchain.toml is now the single pin: the flake builds the dev
shell from it (fenix fromToolchainFile) and CI installs from it via
plain rustup, so neither side can move alone. Bumping the channel
means updating the toml plus the sha256 next to it (build once with
lib.fakeSha256 to learn the new one), and possibly the fenix input.

Also disables nix's fortify hardening in the shell: combined with
cargo's -O0 it makes glibc emit a #warning that jemalloc's -Werror
configure probes turn into "cannot determine return type of
strerror_r", so cargo check never got off the ground in the shell.

just ci now passes in the dev shell under the same clippy CI runs.
The napi release matrix keeps its own RUST_VERSION pin (1.85) in
CI.yml; prebuilt binaries are a separate decision from lint parity.
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