Repository navigation
chore: bump breez sdk to 0.28.2 - #1881
Conversation
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. |
[Medium impact] The SDK bump appears safe to merge; no actionable issues were found. SummaryUpdates
Reviews (1) · Last reviewed commit: "chore: bump breez sdk to 0.28.2" · Reviewed by Greptile |
Regtest APKDownload bitkit-dev-debug universal APK (expires in 30 days). |
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Bumps breez-sdk-spark from 0.28.0 to 0.28.2 in gradle/libs.versions.toml. Reviewed 8a2f715, full tier (a dependency manifest), statically: Bitkit Android PRs are not built here.
What I checked, and 4 candidates I ruled out
Artifact: bindings-android 0.28.2 is the release in mvn.breez.technology/releases maven-metadata, and the .aar resolves. Its POM declares the same dependencies and versions as 0.28.0 (okio, jna 5.18.0, kotlinx, androidx), so the jna exclude in app/build.gradle.kts still covers what it did.
Upstream diff (breez/spark-sdk 0.28.0...0.28.2, 32 commits): the only changes to core/src/models/mod.rs and sdk/bridging/models.rs are doc comments, so the generated Kotlin API is unchanged for every call Bitkit makes.
CI: build-and-test, compose-ui, lint and build-local were still running when I read the checks, so this review does not count them.
Ruled out
- breez/spark-sdk#1299, a pending send shows up in
listPaymentsduring the wait:SparkRepo.payInvoicecheckslightningSendandsendsInFlightbefore callingsend, so a concurrent retry getsPaymentPendingExceptioneither way.syncActivitiesalready counts a listedPENDINGsend inlive, sotrimSparkSendHashescannot release it.recordActivitywrites it asPaymentState.PENDING, and the laterPaymentSucceeded/PaymentFailedevent overwrites that row throughonPayment. - breez/spark-sdk#1283,
check_recover_fundsreturnsRedoorUnverified: master never callscheckRecoverFunds/recoverFunds(grep ofapp/src/main), so nowhenover its result can break on this branch. - breez/spark-sdk#1280, keep-alive retry: the retry happens inside the SDK, within the call's own time limit. No Bitkit code matches on the old failure.
- breez/spark-sdk#1313, API key sent when fetching the Orchestra config: that is bridging code, and Bitkit does not use the bridging API.
Merge confidence: 4/5. A dependency bump with no test that runs the SDK (the Spark unit tests mock SparkService), and CI was still pending at review time.
|
Triage: milestone 3.2.0. This PR brings Breez SDK fixes the 3.2.0 Spark paths use and drops a workaround they needed, so it ships with that release. It closes no issue, so it carries the milestone itself. |
jvsena42
left a comment
There was a problem hiding this comment.
No findings. I reviewed this as a funds change: I read the upstream diff 0.28.0..0.28.2 (31 non-doc files), not only the summary.
- breez/spark-sdk#1299 (
lightning_sender.rs):SparkService.bolt11SendOptionspassescompletionTimeoutSecs = null, whichbolt11.rs:107makes0. With timeout 0, 0.28.0 already stored the pending row right afterspawn_poll, and 0.28.2 writes the same row once more at that point. SolistPaymentsshows a pending send at the same moment as before. The pending-send and pre-restore guards,trySettleUncertainSendand the Paykit route see the same listing. The added write emits no event, and sqliteapply_payment_updatenever replaces a terminal status with pending, so there is no early success and no node-plus-Spark double pay. The "can appear a little sooner" line in the description only applies to callers with a non-zero completion timeout. - breez/spark-sdk#1280 (
platform-utils/src/http): onlychain/rest_client.rsretries the remapped keep-alive error, on GET and broadcast, both safe to repeat. - breez/spark-sdk#1283 (
check_exit_chain): master never callscheckRecoverFunds/recoverFunds. - Storage and API: no change under
core/src/persist, no schema migration; model changes are doc comments only. Spark isn't inv3.1.0, so there's no installed base anyway.
Heads-up for #1782 once it runs on 0.28.2 (no change needed here). SparkExitDriver's unit tests use a fake SDK, so none of this is exercised yet:
- A lost CPFP race now returns
Redo, so it skips thedeadChildren→stallRebuildpath (SparkExitDriver.kt:518-524). Redo rebuilds aren't counted installRebuilds. - A check can now set and clear
Unverifiedon a failed outspend read, which costs one skipped broadcast plus a rebuild where 0.28.0 just re-sent the step.
I found no wrong broadcast, loop or extra fee from either. They're worth a driver test with Redo/Unverified verdicts and a regtest exit run after rebase.
iOS synonymdev/bitkit-ios#1128 still pins exactVersion 0.28.0, so its emergency exit would run 0.28.0 check semantics while Android runs 0.28.2; an iOS bump keeps them aligned.
Device gate: no device check needed: no UI or journey change. All e2e lanes (send, lightning_security, lnurl_transfer and the rest) pass at 8a2f7154b on the new SDK, which covers the Spark send/receive paths. perf: not relevant.
Reviewer model: Claude Fable 5.2 (claude-fable-5-2), Claude Opus 5.5 (claude-opus-5-5)
Reasoning effort: not exposed
Description
breez-sdk-sparkfrom 0.28.0 to 0.28.2, the current stable release. From 0.28.0 it brings:check_recover_fundsnow returnsRedowhen a CPFP child's funding was spent by another transaction, instead ofValid. It also asks the chain less per check, and marks a transaction it couldn't readUnverified. The emergency exit (feat: spark emergency exit #1782, not onmasteryet) works around the oldValidtoday; this PR doesn't touch that branch.listPaymentsshows it during the wait. Bitkit's Spark sync already treats a listed pending send as in flight, the same as an uncertain retry, so the node keeps holding off. The only visible difference is that the send can appear a little sooner. No code or test change.Design
N/A — no UI changes.
Preview
N/A
QA Notes
Automated Checks
SparkService, so they read no SDK behaviour; the build checks the API is unchanged for Bitkit's calls.