Skip to content

chore: bump breez sdk to 0.28.2 - #1881

Merged
ovitrif merged 1 commit into
masterfrom
chore/breez-sdk-0.28.2
Nov 12, 2026
Merged

ovitrif merged 1 commit into
masterfrom
chore/breez-sdk-0.28.2

Conversation

@ovitrif

@ovitrif ovitrif commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Bumps breez-sdk-spark from 0.28.0 to 0.28.2, the current stable release. From 0.28.0 it brings:
    • breez/spark-sdk#1283: check_recover_funds now returns Redo when a CPFP child's funding was spent by another transaction, instead of Valid. It also asks the chain less per check, and marks a transaction it couldn't read Unverified. The emergency exit (feat: spark emergency exit #1782, not on master yet) works around the old Valid today; this PR doesn't touch that branch.
    • breez/spark-sdk#1299: a Lightning send is stored as pending before the SDK waits for it, so listPayments shows 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.
    • breez/spark-sdk#1280: a keep-alive timeout on the SDK's chain connection is retried on a new connection within the call's time limit, instead of failing the call. No app code depends on the old failure.
    • The rest is docs, CLI samples, and Cash App bridging that Bitkit doesn't use.

Design

N/A — no UI changes.

Preview

N/A

QA Notes

Automated Checks

  • CI's build, unit tests, lint and e2e run against the new SDK. The Spark unit tests mock SparkService, so they read no SDK behaviour; the build checks the API is unchanged for Bitkit's calls.

@ovitrif ovitrif self-assigned this Nov 12, 2026
@ovitrif
ovitrif requested review from a team, ben-kaufman and pwltr and removed request for a team November 12, 2026 10:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 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-11-12T10:04:18.393641Z 8a2f715 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.

@greptile-apps

greptile-apps Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

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

Summary

Updates breez-sdk-spark from 0.28.0 to 0.28.2.

  • Bitkit's Spark wallet now uses Breez SDK 0.28.2.

Reviews (1) · Last reviewed commit: "chore: bump breez sdk to 0.28.2" · Reviewed by Greptile

@github-actions

Copy link
Copy Markdown
Contributor

Regtest APK

Built from 8a2f715 (run).

Download bitkit-dev-debug universal APK (expires in 30 days).

@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 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 listPayments during the wait: SparkRepo.payInvoice checks lightningSend and sendsInFlight before calling send, so a concurrent retry gets PaymentPendingException either way. syncActivities already counts a listed PENDING send in live, so trimSparkSendHashes cannot release it. recordActivity writes it as PaymentState.PENDING, and the later PaymentSucceeded/PaymentFailed event overwrites that row through onPayment.
  • breez/spark-sdk#1283, check_recover_funds returns Redo or Unverified: master never calls checkRecoverFunds/recoverFunds (grep of app/src/main), so no when over 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.

@ovitrif ovitrif added this to the 3.2.0 milestone Nov 12, 2026
@ovitrif

ovitrif commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@ovitrif

ovitrif commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Merging: approved by @pwltr, all required checks green on 8a2f715, no open threads.

@ovitrif
ovitrif merged commit 12d7848 into master Nov 12, 2026
24 checks passed
@ovitrif
ovitrif deleted the chore/breez-sdk-0.28.2 branch November 12, 2026 10:33

@jvsena42 jvsena42 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.bolt11SendOptions passes completionTimeoutSecs = null, which bolt11.rs:107 makes 0. With timeout 0, 0.28.0 already stored the pending row right after spawn_poll, and 0.28.2 writes the same row once more at that point. So listPayments shows a pending send at the same moment as before. The pending-send and pre-restore guards, trySettleUncertainSend and the Paykit route see the same listing. The added write emits no event, and sqlite apply_payment_update never 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): only chain/rest_client.rs retries the remapped keep-alive error, on GET and broadcast, both safe to repeat.
  • breez/spark-sdk#1283 (check_exit_chain): master never calls checkRecoverFunds/recoverFunds.
  • Storage and API: no change under core/src/persist, no schema migration; model changes are doc comments only. Spark isn't in v3.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 the deadChildren → stallRebuild path (SparkExitDriver.kt:518-524). Redo rebuilds aren't counted in stallRebuilds.
  • A check can now set and clear Unverified on 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

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.

4 participants