Skip to content

chore: bump ldk to 0.2.8 - #134

Merged
ovitrif merged 2 commits into
mainfrom
chore/bump-ldk-0.2.8
Nov 11, 2026
Merged

ovitrif merged 2 commits into
mainfrom
chore/bump-ldk-0.2.8

Conversation

@ovitrif

@ovitrif ovitrif commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

Bumps LDK to 0.2.8 (release notes): lightning, lightning-liquidity, lightning-persister and lightning-transaction-sync to 0.2.8 and lightning-invoice to 0.34.2, and adds the bump to CHANGELOG.md. The lockfile changes only these five packages.

No ldk-node code changes: the two 0.2.8 API updates (outbound zero-conf splice acceptance, lightningdevkit/rust-lightning#5563, and RouteHop::maybe_announced_channel for route hint hops, lightningdevkit/rust-lightning#5503) touch nothing ldk-node uses.

QA Notes

Automated Checks

  • cargo test on macOS arm64: unit tests, tests/integration_tests_rust.rs (including splice_channel, splice_in_from_taproot_wallet and channel_full_cycle_0conf) and tests/multi_address_types_tests.rs pass.
  • tests/reorg_test.rs fails for the reorg_depth = 6, force_close = false case at tests/reorg_test.rs:196 (spendable on-chain balance after the reorg). main fails the same case at the same line, so it predates this PR.
  • RUSTFLAGS="-D warnings" cargo build now passes: 0.2.8 drops the trailing semicolons in LDK's log macros (lightningdevkit/rust-lightning@e0ba7e9) that made the 12 errors on main.
  • RUSTFLAGS="-D warnings" cargo build --features uniffi still fails with 5 errors that are already on main (unused imports in the FFI layer and the deprecated FeeRate::from_sat_per_vb_unchecked in the generated UniFFI code). They don't affect ./bindgen.sh.
  • Rust CI (run) passes the stable build and stops at "Build with UniFFI support" on those 5 errors; on main it stops one step earlier on the 12 macro errors.

@ovitrif ovitrif self-assigned this Nov 11, 2026
@ovitrif
ovitrif requested review from a team, ben-kaufman and pwltr and removed request for a team November 11, 2026 14:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T14:05:34.514007Z 9ea8b64 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@jvsena42
jvsena42 self-requested a review November 11, 2026 14:09

@jvsena42 jvsena42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed against main (7e61139): no findings. Approving.

Lockfile: I compared all 477 packages. Exactly five change: lightning, lightning-liquidity and lightning-transaction-sync 0.2.7 → 0.2.8, lightning-persister 0.2.3 → 0.2.8, and lightning-invoice 0.34.1 → 0.34.2. Nothing transitive moves. The unbumped LDK siblings have no source changes between v0.2.7 and v0.2.8.

Why to ship it: 0.2.8 fixes several issues that apply to Bitkit's nodes:

  • RAA accepted before our commitment_signed (#5561).
  • Electrum sync hiding relevant transactions, and skipping 64-byte transactions (#5557, #5559). The nodes sync over Electrum.
  • ChannelManager deserialization failures and panics at startup (#5541, #5528).
  • Peer-triggered panics, including one in MonitorUpdatingPersister (#5540), which ldk-node uses.
  • A forwarded-HTLC claim lost through channel_id reuse (#5562).

A keyed-anchor commitment is now broadcast at its own feerate when the anchor child can't be funded, which helps wallets with no on-chain balance.

Persisted state: ChannelMonitor and Channel serialization is unchanged. ChannelManager gains one odd TLV (payment_id on PaymentClaimed), so an upgrade reads it as None and a downgrade to 0.2.7 ignores it. The persister key layout is unchanged.

Notes, no change needed here:

  • #5563 does touch ldk-node. It exposes splice_in/splice_out with reject_inbound_splices = false and LDK's default trust_own_funding_0conf. Splices on channels we opened now wait for max(minimum_depth, 6) confirmations instead of the counterparty's depth. LSP 0-conf channels accepted from trusted peers are unchanged, and neither app calls splice today. The PR body's "touches nothing ldk-node uses" is slightly off; "no code changes" holds.
  • Startup reads: read_all_channel_monitors_with_updates now cleans archived monitor updates first: two extra list calls plus one per archived monitor, and on the first start up to 100 removes per archived monitor. On VSS that is K+2 round trips before the node starts, and an error there becomes BuildError::ReadFailed. Worth timing a cold start with several closed channels once rc.80 reaches the apps.
  • CHANGELOG: the versions are right. It could say this is a security release, and the superseded 0.2.7 line is still in the section.

CI: "Build on Rust stable" with -D warnings passes at 9ea8b643a. The run stopped at "Build with UniFFI support" on the 5 errors that are already on main, so cargo test did not run in CI. The test evidence is your local run, with the reorg_test.rs:196 failure that main shares.

Device gate: no device check for the library; the apps pick this up in 0.7.0-rc.80.

Reviewer model: Claude Fable 5.2 (claude-fable-5-2), Claude Opus 5.5 (claude-opus-5-5)
Reasoning effort: not exposed

@ovitrif

ovitrif commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator Author

Merged: approved by @jvsena42 on 9ea8b64, no open threads, and main has no required checks. The red Rust CI job stops at "Build with UniFFI support" on 5 -D warnings errors that main already has (see QA Notes), not on this change.

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.

2 participants