Skip to content

chore: bump ldk-node to 0.7.0-rc.80 - #1290

Merged
ovitrif merged 2 commits into
masterfrom
chore/bump-ldk-node-rc80
Nov 11, 2026
Merged

ovitrif merged 2 commits into
masterfrom
chore/bump-ldk-node-rc80

Conversation

@ovitrif

@ovitrif ovitrif commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #1289

Twin: synonymdev/bitkit-android#1872

Updates ldk-node to 0.7.0-rc.80, which bumps LDK to 0.2.8 (synonymdev/ldk-node#134).

Description

  • Bumps ldk-node from 0.7.0-rc.79 to 0.7.0-rc.80, a dependency-update release with no API changes.
  • Adds a changelog.d fragment for the upstream security fixes, as earlier LDK bumps did.

Design

N/A — no UI changes.

Preview

N/A

QA Notes

Setup

Regtest build.

Journeys

N/A — no user-visible behaviour change.

Manual Tests

N/A

Automated Checks

  • ran lightning.e2e.ts (@lightning_1) on a regtest simulator — a channel opens, the app receives 10,000 and 111 sats, sends two payments, restores from the recovery phrase and closes the channel (results).

Evidence

  • xcodebuild -resolvePackageDependencies resolves ldk-node 0.7.0-rc.80 from a clean package cache, binary target included.
  • CI build, unit and E2E checks run on this head.

Gaps

N/A

@ovitrif ovitrif self-assigned this Nov 11, 2026
@ovitrif
ovitrif requested review from a team, ben-kaufman and coreyphillips and removed request for a team November 11, 2026 16:28
@ovitrif ovitrif added this to the 3.2.0 milestone Nov 11, 2026
@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-11T16:29:33.113216Z 72e915e 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.

@greptile-apps

greptile-apps Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The supplied dependency changes appear safe to merge; no actionable defect was found.

Summary

Bumps ldk-node from 0.7.0-rc.79 to 0.7.0-rc.80.

  • Bitkit now builds its Lightning features with LDKNode rc.80.

Reviews (1) · Last reviewed commit: "chore: bump ldk-node to 0.7.0-rc.80" · Reviewed by Greptile

@talosmachina talosmachina left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No findings. Bumps ldk-node from 0.7.0-rc.79 to 0.7.0-rc.80 (LDK 0.2.8, lightning-invoice 0.34.2). Reviewed 72e915e, full tier (dependency manifest), static: iOS does not build on Linux, so this rests on the upstream diff and CI.

What I checked
  • Pin matches the tag: Package.resolved revision b6335ecd86e9e9dc4e824dcb4b6065273572ca9d is what v0.7.0-rc.80 points to in synonymdev/ldk-node, and the old revision faddf6d is v0.7.0-rc.79. project.pbxproj and Package.resolved agree on the version.
  • Binary checksum: downloaded LDKNodeFFI.xcframework.zip from the rc.80 release; its SHA-256 1090fab1...d4ba equals the checksum in the tag's Package.swift.
  • Upstream delta rc.79..rc.80: 4 commits, touching only Cargo.toml/Cargo.lock (LDK crates to 0.2.8), version strings and the changelog. No change under the Swift bindings, so no API surface moves for the app.

Merge confidence: 4/5, no findings, but Run Tests, Run Integration Tests and build-local were still pending at review time and the regtest device run the body lists has not reported yet.

@ovitrif ovitrif removed this from the 3.2.0 milestone Nov 11, 2026

@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.

Code scan at 72e915ee: no findings. I reviewed this as an LDK dependency bump.

  • What rc.80 carries: v0.7.0-rc.79..v0.7.0-rc.80 is LDK 0.2.8 (synonymdev/ldk-node#134, which I reviewed and approved) plus the release commit. The #133 merge in that range has an empty diff against rc.79.
  • Binary: Package.swift at the tag pins checksum 1090fab1…d4ba, which matches the LDKNodeFFI.xcframework.zip release asset. Package.resolved moves only ldk-node, to b6335ecd.
  • Persisted state: ChannelMonitor and Channel serialization is unchanged. ChannelManager gains one odd TLV, so upgrade and downgrade are format-safe.
  • Fixes: 0.2.8 fixes Electrum sync hiding transactions, ChannelManager deserialization failures at startup, and peer-triggered panics.

perf: relevant. LDK 0.2.8's read_all_channel_monitors_with_updates first cleans archived monitor updates: two extra list calls, plus one per archived monitor, each a VSS round trip before the node starts.

Device gate (partial): 72e915ee — not run yet. Node cold start on this build vs master on the simulator, and a Lightning payment, are next.

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

@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.

Device gate at 72e915ee: the node starts and upgrades cleanly on rc.80. Approving.

Cold start (iPhone 17 Pro simulator, staging regtest wallet with no channels; builds alternated; host load under 20 for the runs that count):

run 1 run 2 run 3 mean
this PR: launch → Node started 8.34 s 8.25 s 8.68 s 8.42 s
master 2f697c14a: launch → Node started 7.77 s 7.96 s 7.86 s 7.86 s

All of the 0.56 s difference is in Building node... → LDK node setup (5.57 vs 4.90 s), where 0.2.8 adds its monitor-cleanup reads. start() takes 1.58 s on both. That is about 7% on a wallet with no monitors. A wallet with several closed channels pays one more VSS list per archived monitor, which I couldn't measure here. Neither build logged a new WARN or ERROR, and there were no VSS or read failures.

this PR:
[2026-11-11 16:49:54.839 UTC] DEBUG: Building node...
[2026-11-11 16:50:00.408 UTC] INFOℹ️: LDK node setup
[2026-11-11 16:50:01.983 UTC] INFOℹ️: Node started
master:
[2026-11-11 16:50:33.289 UTC] DEBUG: Building node...
[2026-11-11 16:50:38.152 UTC] INFOℹ️: LDK node setup
[2026-11-11 16:50:39.732 UTC] INFOℹ️: Node started

Upgrade over a master install (no wipe): pass. The node started in 10.9 s with the same node ID and onchain=300000 lightning=0, and no new errors.

⚠️ Lightning payment: not run. Neither simulator wallet has a channel, Blocktank no longer sells them (POST /channels and /cjit return 404 on staging), and the local LND is on a different regtest chain. The payment paths rest on the e2e lanes (e2e-tests-local - e2e was still running) and on the upstream 0.2.8 tests.

Device gate: 72e915ee — node cold start and upgrade passed; perf: cold start 8.42 s (master 7.86 s, +0.56 s in node build); payment not run (no channel).

Reviewer model: Claude Opus 5.5 (claude-opus-5-5)
Reasoning effort: not exposed

@ovitrif

ovitrif commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

QA for 72e915e:
Tested on iPhone 17 Pro simulator (iOS 27.0), regtest.

🟢 Open a channel, receive and send Lightning payments
Open a channel, receive and send Lightning payments

The bitkit-e2e-tests spec @lightning_1 - Can receive and send LN payments passed on this build, which resolves ldk-node 0.7.0-rc.80. An LND peer opened a 100,000 sat channel to the app, the app received 10,000 sats and then 111 sats on an edited invoice, and it sent two payments back to LND (one invoice without an amount, one for 1,000 sats). After a wipe and a restore from the recovery phrase, the restored node recovered its channel monitor and closed the channel cooperatively. The recording plays at 2x.

lightning_1-ios2x.mp4

@coreyphillips coreyphillips left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two independent reviews.

worth doing, does not block

  • No security changelog fragment for the LDK 0.2.8 funds-loss fixes (changelog.d/next). The PR adds no changelog.d fragment, but rc.80 exists to pull in LDK 0.2.8, and that release's Security section fixes several funds-loss vulnerabilities. Examples are #5559 (64-byte nonstandard txs ignored in electrum/esplora sync, enabling HTLC-claim theft), #5557 (a malicious peer hiding relevant on-chain txs during electrum sync) and #5561 (differing commitment txs signed at the same index). The repo already treats LDK security bumps as user-facing release notes. Commit 4f91cf6 added changelog.d/next/928.security.md ("Updated the Lightning node with upstream security fixes."). The 2.5.1 hotfix lists "Updated LDK Node to 0.7.0-rc.66.1 for the upstream Lightning security fixes. #924". See CHANGELOG.md:184-191. CLAUDE.md lets chore: PRs skip a fragment unless the change is user-facing. By that precedent this one is. I confirmed the omission by listing changelog.d/next on HEAD, which has no 1290 fragment. Suggested: one changelog.d/next/1290.security.md (or hotfix/ if maintainers want it in a patch release), e.g. Updated the Lightning node with upstream security fixes.

the reviewers disagree, your call

  • PR body has a Twin placeholder and manual tests without stable IDs (general). Objection: The repository rules support the requested formatting, but I could not retrieve the PR description to verify the cited placeholder or missing IDs. I cannot confirm this finding from the checkout. Answer: gh pr view 1290 shows the body has Twin: synonymdev/bitkit-android (to follow), which .agents/commands/pr.md:92-94 rules out: it says to omit unconfirmed relationships, add no placeholders and use owner/repo#number. The manual tests read - [x] Regtest: open a channel ... with no 1./2./3. IDs, which CLAUDE.md's Stable QA case IDs section requires. They are also pre-checked, although pr.md says to leave them unchecked. This is description hygiene only, so it is a nit.

@ovitrif

ovitrif commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator Author

@coreyphillips

No security changelog fragment for the LDK 0.2.8 funds-loss fixes (changelog.d/next).

Added changelog.d/next/1290.security.md ("Updated the Lightning node with upstream security fixes.") in 5c223eb, following synonymdev/bitkit-ios#928.

PR body has a Twin placeholder and manual tests without stable IDs

I removed the Twin placeholder (the Android PR will be linked once it is open) and numbered the manual tests 1. to 3.. They stay checked because the regtest run in this comment covered all three. 5c223eb only adds the changelog file, so that run still applies.

@coreyphillips coreyphillips left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rechecked after 1 new commit (5c223eb). Nothing blocking remains.

addressed

  • No security changelog fragment for the LDK 0.2.8 funds-loss fixes (changelog.d/next). Fixed: changelog.d/next/1290.security.md:1 now reads "Updated the Lightning node with upstream security fixes." with a trailing newline. I ran scripts/collect-changelog.sh --target next on an exported copy of HEAD in a temp directory. It exited 0 and wrote - Updated the Lightning node with upstream security fixes. #1290 under Unreleased. The #1290 suffix keeps it from being deduped against the older #928 entry.

still open

  • PR body has a Twin placeholder and manual tests without stable IDs. Twin: synonymdev/bitkit-android (to follow) is a placeholder. .agents/commands/pr.md:91-94 says to omit relationships that are not confirmed and to use owner/repo#number. No Android PR for this bump exists yet; only issue synonymdev/bitkit-android#1870 is open. The three manual tests are written as - [ ] Regtest: .... CLAUDE.md's Stable QA case IDs section wants - [ ] 1. .... pr.md:228 also asks each manual step to name the missing capability that keeps it out of a journey. The author's QA comment already covers these flows, so adding IDs now would let that evidence be referenced by ID. Codex still sees it: The supplied body removes the placeholder and adds IDs, but prechecked cases and missing capability explanations still conflict with .agents/commands/pr.md:226-228. The 17:19 response does not rebut those requirements; GitHub connectivity blocked live verification.

@ovitrif

ovitrif commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator Author

@coreyphillips

pr.md:228 also asks each manual step to name the missing capability that keeps it out of a journey.

The Capabilities table in journeys/README.md lists Lightning channels, so these checks were never Manual Tests. Manual Tests are now N/A, and the regtest run is listed under Automated Checks as lightning.e2e.ts with a link to its results, so no checkbox is left pre-checked. The Twin line now points to synonymdev/bitkit-android#1872.

@coreyphillips coreyphillips left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rechecked after replies, with no new commit since 5c223eb. Nothing blocking remains.

addressed

  • PR body has a Twin placeholder and manual tests without stable IDs. Fixed: gh pr view 1290 now shows Twin: synonymdev/bitkit-android#1872. gh pr view 1872 --repo synonymdev/bitkit-android confirms that PR is open and titled "chore: bump ldk-node to 0.7.0-rc.80". Manual Tests is now N/A, so no IDs or pre-checked boxes are left. The regtest run sits under Automated Checks as ran lightning.e2e.ts, which matches the pr.md:228-230 rules, since Lightning channels are a listed capability.

@ovitrif

ovitrif commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator Author

Merged: approved by @coreyphillips and @jvsena42 on 5c223eb, checks green, regtest Lightning e2e passed (results).

@ovitrif
ovitrif merged commit 1b56274 into master Nov 11, 2026
23 checks passed
@ovitrif
ovitrif deleted the chore/bump-ldk-node-rc80 branch November 11, 2026 19:15
@piotr-iohk piotr-iohk mentioned this pull request Nov 12, 2026
3 tasks
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.

chore: bump ldk-node to 0.7.0-rc.80

4 participants