Repository navigation
fix: speed up node start on slow networks - #1569
Conversation
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)
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. |
There was a problem hiding this comment.
💡 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".
[Medium impact] The supplied changes appear safe to merge; no actionable issue was found. SummaryUpdates
Reviews (1) · Last reviewed commit: "fix: speed up node start on slow network..." · Reviewed by Greptile |
talosmachina
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
Merging: approved, CI green on 3c41d8f. The changelog fragment for synonymdev/bitkit-android#2219 follows in a separate PR for both apps. |
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
src/io/vss_store.rsand the version numbers; the bindings API is the same as rc.84.Package.resolvedpinned to thev0.7.0-rc.85tag commit 3f45b8ec.Out of Scope
release-3.2.0merges back into master; a second one here would list the fix twice.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
Got new ChannelMonitor→Persistence … completedin 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 CapabilitiesAutomated Checks
N/A
Evidence
Gaps
Models used
Claude Opus 5.5(reasoning:medium)opus(reasoning:Not exposed),gemini-4-neon-high(reasoning:Not exposed)