Repository navigation
chore: bump ldk to 0.2.8 - #134
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
jvsena42
left a comment
There was a problem hiding this comment.
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.
ChannelManagerdeserialization 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_outwithreject_inbound_splices = falseand LDK's defaulttrust_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_updatesnow cleans archived monitor updates first: two extralistcalls 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 becomesBuildError::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
Bumps LDK to 0.2.8 (release notes):
lightning,lightning-liquidity,lightning-persisterandlightning-transaction-syncto 0.2.8 andlightning-invoiceto 0.34.2, and adds the bump toCHANGELOG.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_channelfor route hint hops, lightningdevkit/rust-lightning#5503) touch nothing ldk-node uses.QA Notes
Automated Checks
cargo teston macOS arm64: unit tests,tests/integration_tests_rust.rs(includingsplice_channel,splice_in_from_taproot_walletandchannel_full_cycle_0conf) andtests/multi_address_types_tests.rspass.tests/reorg_test.rsfails for thereorg_depth = 6, force_close = falsecase attests/reorg_test.rs:196(spendable on-chain balance after the reorg).mainfails the same case at the same line, so it predates this PR.RUSTFLAGS="-D warnings" cargo buildnow passes: 0.2.8 drops the trailing semicolons in LDK's log macros (lightningdevkit/rust-lightning@e0ba7e9) that made the 12 errors onmain.RUSTFLAGS="-D warnings" cargo build --features uniffistill fails with 5 errors that are already onmain(unused imports in the FFI layer and the deprecatedFeeRate::from_sat_per_vb_uncheckedin the generated UniFFI code). They don't affect./bindgen.sh.mainit stops one step earlier on the 12 macro errors.