Repository navigation
chore: remove boltz swap leftovers - #1570
Conversation
Removes what the Boltz savings swap removal left behind: CopyableText, whose last caller was the swaps list; the BitkitCore import TransferViewModel kept only for Boltz types; the amount key on the savings confirm sync, which only re-ran the swap quote; and the swap recovery step in the Paykit outage journey. Verified: xcodebuild build-for-testing (iOS Simulator, arm64), swiftformat --lint on the changed files
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. |
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryRemoves leftovers from the Boltz savings swap removal.
No actionable issues found. Build and runtime checks were not repeated. Reviews (3) · Last reviewed commit: "chore: remove boltz swap leftovers" · Reviewed by Greptile |
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Removes the Boltz swap leftovers: CopyableText, the BitkitCore import in TransferViewModel, and the amount key on the Transfer to Savings sync. Reviewed 8b6bda7, light tier, static: iOS does not build on this reviewer's Linux host.
What I checked, and 3 candidates I ruled out
Read: SavingsConfirmView.swift and TransferViewModel.swift at the head, the base's .task(id: totalSats) and the Boltz removal commit that left it behind
Callers: no CopyableText reference is left at the head
CI: SwiftFormat, validate, Greptile green; Run Tests and Run Integration Tests still running when this was written
Ruled out
TransferViewModelstill needsBitkitCore: compared every public type and free function in the pinned0.8.0-rc15Swift bindings with the identifiers in the file. The only overlap isopenChannel, called there aslightningService.openChannel(...), the app's own method.OnchainSendResultandChannelDetailscome fromLDKNode, which stays imported; the rest are app types.- Dropping the
totalSatskey loses a needed sync: after the swap removal the task only syncs node balances, which does not depend on the selection, so re-running it when the selected channels changed only repeated the same fetch (and a sync that changed a channel balance re-keyed it into a second one). Android'sSavingsConfirmScreendoes the same withLaunchedEffect(Unit). - Journey drift between platforms: the
ordinary-during-paykit-outage.xmlline is byte-identical to the Android twin.
Merge confidence: 4/5, Run Tests had not finished and the branch was not built here.
Reviewer model: claude-opus-5-5
Reasoning effort: Not exposed (the run's metadata does not record it)
piotr-iohk
left a comment
There was a problem hiding this comment.
QA review
Scope: full PR diff against its merge base, at 8b6bda7.
No new actionable code findings.
The Transfer to Savings confirm screen still calls wallet.syncStateAsync() when it appears. Channel and payment events continue to refresh balances through WalletViewModel.refreshAndSyncState(), and LightningService.start() refreshes the node cache before those balances are published. On bitkit-android#2229 at 97ca365, SavingsConfirmScreen does that initial refresh once with LaunchedEffect(Unit). The updated Paykit-outage journey action is byte-identical there. Only those two contracts were compared; that Android pull request also removes payInvoiceWithNode, which was not reviewed. CopyableText had no callers at the merge base. TransferViewModel does not reference BitkitCore types. Boltz ensureSwapUpdatesRunning() was already removed in f50eda759, which is contained in the merge base. Pubky swap restore still runs from restoreWalletBackupAndStart().
Device testing was not performed. J1 stays non-executable as a full journey: ordinary-during-paykit-outage.xml says its fault controls are not wired. SwiftFormat succeeded on this commit. Run Tests and Run Integration Tests had not finished, so they are not execution evidence. The author’s xcodebuild build-for-testing report was not re-run.
Suggested additional test cases
- iOS, regtest wallet with an open channel: receive a Lightning payment, open Transfer to Savings, and confirm the amount includes it. Leave that screen open, receive another payment, and confirm the amount updates.
Reviewer model: grok-4.7
Reasoning effort: xhigh
@piotr-iohk ran it; both parts pass. QA for 8b6bda7: 🟢 Amount includes a payment received before opening, Amount updates while the screen is openAmount includes a payment received before opening After receiving 5,000 sats on Home, Transfer to Savings opened at $133.03, the full 219,028-sat spending balance.
Amount updates while the screen is open With Transfer to Savings open, the amount went from $114.96 to $121.03 after receiving 10,000 sats, then to $130.14 after another 15,000 sats.
|
piotr-iohk
left a comment
There was a problem hiding this comment.
Device QA passed on 8b6bda7a3bbc in the iPhone 17 simulator with an open, isolated regtest Lightning channel.
- A 1,000-sat Lightning payment settled before opening Transfer to Savings. The screen showed the updated 24,340-sat channel amount.
- A 1,500-sat payment settled while the transfer screen was open. Its channel amount rose from 24,340 to 25,840 sats. Spark independently refreshed during that visit, so I repeated the check with only the Lightning channel selected.
- In the channel-only run, a 1,200-sat payment settled while the transfer confirmation was open. After dismissing the receipt, the same screen showed 27,040 sats, up from 25,840 sats, without reopening the transfer flow.
piotr-iohk
left a comment
There was a problem hiding this comment.
Device QA passed on 8b6bda7a3bbc. With Transfer to Savings open and only the Lightning channel selected, a 1,200-sat regtest payment settled and the displayed amount increased from 25,840 to 27,040 sats without reopening the screen. Unit and integration tests passed. E2E was queued at approval. Full device results.
|
Auto-merge on: approved by @piotr-iohk after his device QA, no open threads; it merges once the queued e2e run reports. |
|
Restarted the e2e run: its job sat queued for over three hours while later runs got runners, and the required |
|
Closed and reopened this PR to start a fresh e2e run: rerunning the old run checked out its stale merge ref, which the merge-checkout guard refuses now that master moved. The first reopen still carried an older merge commit, so I reopened once more; this run passes the guard. No code changed; the approval stands, and the PR merges once the run passes. |
|
Merged: approved by @piotr-iohk after his device QA, required checks green including the fresh e2e run, no open threads. |
Twin: synonymdev/bitkit-android#2229
Source: self, #1562
This PR removes what the Boltz savings swap removal left behind.
Description
CopyableText, whose last caller was the swaps list that chore: remove the Boltz savings swap #1562 deleted.BitkitCoreimport from the transfer view model, which it kept only for the Boltz types.Out of Scope
boltz.dbon disk: kept, since with the seed it is what a manual refund of a locked swap needs.0.8.0-rc15until the rc16 bump (chore: prepare 0.8.0-rc16 bitkit-core#230).AndroidBackupJsonTestsfixture: keepsisSavingsSwapEnabled, as older Android backups carry it and restore ignores it.Design
N/A — no UI changes.
Preview
N/A
QA Notes
Setup
A debug build of this branch with a channel open.
Journeys
ordinary-during-paykit-outage.xml— startup recovery watchers start without PaykitManual Tests
N/A
Automated Checks
N/A
Evidence
xcodebuild build-for-testing(iOS Simulator, arm64) passes; SwiftFormat lint passes on the changed files.Gaps
Models used
Claude Opus 5.5(reasoning:medium)Claude Opus 5.5(reasoning:medium)Gemini 4 Neon(reasoning:high)