Skip to content

chore: remove boltz swap leftovers - #1570

Merged
ovitrif merged 1 commit into
masterfrom
chore/remove-boltz-leftovers
Dec 2, 2026
Merged

ovitrif merged 1 commit into
masterfrom
chore/remove-boltz-leftovers

Conversation

@ovitrif

@ovitrif ovitrif commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Twin: synonymdev/bitkit-android#2229
Source: self, #1562

This PR removes what the Boltz savings swap removal left behind.

Description

  • Removes CopyableText, whose last caller was the swaps list that chore: remove the Boltz savings swap #1562 deleted.
  • Removes the BitkitCore import from the transfer view model, which it kept only for the Boltz types.
  • Runs the Transfer to Savings sync once on appear, because keying it on the amount only re-fetched the swap quote; Android already syncs once.
  • Drops "swap recovery" from the Paykit outage journey's startup step, since no swap watcher starts on launch any more.

Out of Scope

  • boltz.db on disk: kept, since with the seed it is what a manual refund of a locked swap needs.
  • The bitkit-core pin: stays on 0.8.0-rc15 until the rc16 bump (chore: prepare 0.8.0-rc16 bitkit-core#230).
  • AndroidBackupJsonTests fixture: keeps isSavingsSwapEnabled, 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

  • J1: updated ordinary-during-paykit-outage.xml — startup recovery watchers start without Paykit

Manual Tests

N/A

Automated Checks

N/A

Evidence

  • 8b6bda7: xcodebuild build-for-testing (iOS Simulator, arm64) passes; SwiftFormat lint passes on the changed files.

Gaps

  • J1 and unit tests not run.

Models used

  • Planning/scoping: Claude Opus 5.5 (reasoning: medium)
  • Implementation: Claude Opus 5.5 (reasoning: medium)
  • Review: Gemini 4 Neon (reasoning: high)
  • Review rounds: 1

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
@ovitrif ovitrif added this to the 3.3.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-01T16:48:33.998949Z 8b6bda7 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.

@ovitrif
ovitrif requested review from a team, jvsena42 and piotr-iohk and removed request for a team December 1, 2026 16:48
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Removes leftovers from the Boltz savings swap removal.

  • The Savings confirmation screen refreshes wallet state when it appears.
  • The app and outage journey drop leftover swap references.

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

  • TransferViewModel still needs BitkitCore: compared every public type and free function in the pinned 0.8.0-rc15 Swift bindings with the identifiers in the file. The only overlap is openChannel, called there as lightningService.openChannel(...), the app's own method. OnchainSendResult and ChannelDetails come from LDKNode, which stays imported; the rest are app types.
  • Dropping the totalSats key 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's SavingsConfirmScreen does the same with LaunchedEffect(Unit).
  • Journey drift between platforms: the ordinary-during-paykit-outage.xml line 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 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 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

@ovitrif

ovitrif commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author
  • 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.

@piotr-iohk ran it; both parts pass.

QA for 8b6bda7:
Tested on iOS 26.5 simulator (iPhone 17 Pro), regtest.

🟢 Amount includes a payment received before opening, Amount updates while the screen is open
Amount 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.

opened-after-receive.mp4

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.

updates-while-open.mp4

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

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

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.

@ovitrif

ovitrif commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

Auto-merge on: approved by @piotr-iohk after his device QA, no open threads; it merges once the queued e2e run reports.

@ovitrif
ovitrif enabled auto-merge December 1, 2026 18:53
@ovitrif

ovitrif commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator Author

Restarted the e2e run: its job sat queued for over three hours while later runs got runners, and the required e2e-status check holds the auto-merge on it.

@ovitrif ovitrif closed this Dec 1, 2026
auto-merge was automatically disabled December 1, 2026 19:27

Pull request was closed

@ovitrif ovitrif reopened this Dec 1, 2026
@ovitrif

ovitrif commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator Author

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.

@ovitrif ovitrif closed this Dec 1, 2026
@ovitrif ovitrif reopened this Dec 1, 2026
@ovitrif

ovitrif commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator Author

Merged: approved by @piotr-iohk after his device QA, required checks green including the fresh e2e run, no open threads.

@ovitrif
ovitrif merged commit 6739661 into master Dec 2, 2026
58 of 68 checks passed
@ovitrif
ovitrif deleted the chore/remove-boltz-leftovers branch December 2, 2026 01:31
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