Skip to content

fix: speed up node start on slow networks - #1569

Merged
ovitrif merged 1 commit into
masterfrom
fix/ldk-node-rc85-master
Dec 1, 2026
Merged

ovitrif merged 1 commit into
masterfrom
fix/ldk-node-rc85-master

Conversation

@ovitrif

@ovitrif ovitrif commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Source: team, synonymdev/bitkit-android#2219
Twin: synonymdev/bitkit-android#2224
Dependency: synonymdev/ldk-node#147 (released as v0.7.0-rc.85)

Bumps ldk-node to 0.7.0-rc.85 on master, the same bump as #1565 on release-3.2.0, so master doesn't fall behind the release. Since rc.82, the first ChannelMonitor write at node start opened a new VSS connection, so a network that drops new connects sent it through the write retry backoff: 0.8–62 s on 3.2.0 against 0.3 s on 3.1.1. In rc.85, writes reuse the connection the store's reads opened. Cause and timings: synonymdev/bitkit-android#2219 (comment)

Description

  • ldk-node 0.7.0-rc.84 → 0.7.0-rc.85. rc.85 changes only src/io/vss_store.rs and the version numbers; the bindings API is the same as rc.84.
  • Package.resolved pinned to the v0.7.0-rc.85 tag commit 3f45b8ec.

Out of Scope

Design

N/A — no UI changes.

Preview

N/A

QA Notes

Setup

Mainnet or staging wallet with a channel, on a mobile network.

Journeys

N/A — not drivable; see Manual Tests.

Manual Tests

  • 1. Start the app with a channel open → Got new ChannelMonitor → Persistence … completed in the log takes about as long as on 3.1.1 (0.3–0.4 s), with no multi-second stalls on a weak network — real mobile network conditions not in Capabilities

Automated Checks

N/A

Evidence

Gaps

    1. not run on a phone yet; needs a run on a mobile network.

Models used

  • Planning/scoping: Not used
  • Implementation: Claude Opus 5.5 (reasoning: medium)
  • Review: opus (reasoning: Not exposed), gemini-4-neon-high (reasoning: Not exposed)
  • Review rounds: 2

Bumps ldk-node to 0.7.0-rc.85 on master, matching release-3.2.0: VSS writes reuse the connection the store's reads opened (synonymdev/ldk-node#147), so the first ChannelMonitor write at node start doesn't wait on a new connect and its retries (synonymdev/bitkit-android#2219).

Verified: none (same pins and checksums as the release-3.2.0 bump, which resolved rc.85 from GitHub Packages and a clean SwiftPM cache)
@ovitrif ovitrif added this to the 3.2.0 milestone Dec 1, 2026
@ovitrif ovitrif self-assigned this Dec 1, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 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-12-01T15:59:08.732992Z 3c41d8f 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3c41d8f645

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Bitkit.xcodeproj/project.pbxproj Resolved
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The supplied changes appear safe to merge; no actionable issue was found.RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Updates ldk-node from 0.7.0-rc.84 to 0.7.0-rc.85 to pick up the upstream fix for slow node startup.

  • The first channel monitor write reuses the VSS read connection.

Reviews (1) · Last reviewed commit: "fix: speed up node start on slow network..." · 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 the ldk-node Swift package from 0.7.0-rc.84 to 0.7.0-rc.85 on master. Reviewed 3c41d8f, full tier (dependency manifest), static: iOS does not build here.

What I checked

Pin: project.pbxproj requires exactVersion 0.7.0-rc.85, and Package.resolved pins revision 3f45b8ec4eabca452697405518114beb001ffa02, which is the commit the ldk-node v0.7.0-rc.85 tag points at
Binary: the tag's Package.swift checksum for LDKNodeFFI.xcframework.zip (7837d164…1e24) matches the digest GitHub reports for that release asset
Upstream delta: rc.84 to rc.85 changes only src/io/vss_store.rs and version strings, so the Swift bindings are unchanged
CI: SwiftFormat and validate green; Run Tests, Run Integration Tests and build-local still running at review time

Merge confidence: 4/5, a dependency bump whose changed path (VSS write at node start) no test here exercises, and unit tests had not finished when this was posted.

Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed (the runtime does not report it to the reviewer)

@piotr-iohk piotr-iohk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

QA review

Scope: full PR diff against its merge base, at 3c41d8f.

No new actionable code findings.

No new actionable code findings. The SwiftPM pin is exactVersion 0.7.0-rc.85 and Package.resolved revision 3f45b8ec4eabca452697405518114beb001ffa02, the commit v0.7.0-rc.85 points at. That tag's Package.swift checksum matches the published LDKNodeFFI.xcframework.zip digest 7837d164dc39310d6a5597c0e5598126c5fa4daa72ba63fb9cb0c4f92a0c1e24.

Checked only the contracts this pin consumes from ldk-node#147 at e36d3477198fe1b736d1bba7e293f48a23b13a67, not a full review of that pull request. VssStore shares one HTTP client per side between reads and writes, with the same 10-second timeouts as VssClient::new_with_headers, and writes still go through fenced_retry on the no-retry client. Channel-monitor persistence uses KVStoreSync, so the first monitor write reuses the blocking connection opened while the store is built. The release commit this app pins, 3f45b8ec4eabca452697405518114beb001ffa02, adds version and checksum metadata on top of that head. bindings/swift and bindings/ldk_node.udl are unchanged from rc.84 (05c7095857e7aea493c981039da24c26b726ef6f), and LightningService still calls buildWithVssStore and buildWithVssStoreAndLnurlAuthKeyDomain.

bitkit-android#2224 at 0c6797ec9094202c3a5658a507cc8c415a5a63af is the same 0.7.0-rc.84 to 0.7.0-rc.85 bump, plus Gradle verification metadata. No app-level behavior difference.

The open changelog comment on project.pbxproj asks this master pin to carry a fragment. bitkit-ios#1565 on release-3.2.0 already adds changelog.d/next/1565.fixed.md for the same revision. That release-branch fragment is what the 3.2.0 notes collect; a second copy on master would be collected again after release-3.2.0 merges back.

build-local and Run Integration Tests succeeded on this commit. The integration job resolves packages and builds the Bitkit scheme. Run Tests was still in progress. I did not build or run tests locally.

Device testing: not performed in this review. The author reports manual case 1 has not been run on a phone. Journeys stay N/A: a weak mobile network and those log timings are outside the journey capabilities.

Ready for device testing of manual case 1: start a mainnet or staging wallet that already has a channel, on a mobile network, and check that Got new ChannelMonitor through Persistence … completed takes about 0.3–0.4 s, with no multi-second stall.

Reviewer model: grok-4.7
Reasoning effort: xhigh

@piotr-iohk piotr-iohk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Open-channel startup smoke passed on 3c41d8f64510 in the iPhone 17 simulator using regtest and normal lab connectivity. A cold launch recovered the existing channel and wallet balances. The active channel’s monitor start and completion log markers had the same millisecond timestamp.

Weak-mobile timing remains blocked. This run had no weak cellular link to a staging or regtest wallet with an open channel. The lab log markers do not establish the weak-mobile VSS write time.

@ovitrif

ovitrif commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

Merging: approved, CI green on 3c41d8f. The changelog fragment for synonymdev/bitkit-android#2219 follows in a separate PR for both apps.

@ovitrif
ovitrif merged commit 8279e54 into master Dec 1, 2026
22 checks passed
@ovitrif
ovitrif deleted the fix/ldk-node-rc85-master branch December 1, 2026 19:09
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.

3 participants