Skip to content

Remove CoinJoin mixing (previously-mixed funds remain spendable) - #1512

Closed
bfoss765 wants to merge 3 commits into
masterfrom
feat/remove-coinjoin-keep-funds-spendable
Closed

bfoss765 wants to merge 3 commits into
masterfrom
feat/remove-coinjoin-keep-funds-spendable

Conversation

@bfoss765

@bfoss765 bfoss765 commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

This is PR A of a staged migration series (B: Kotlin SDK integration — blocked on dashpay/platform#4045; C: shielded-balance UX; D: send-path cutover). It removes CoinJoin mixing from the wallet while guaranteeing that funds users previously mixed remain fully spendable and correctly displayed.

What was removed

  • Mixing engine: CoinJoinService, CoinJoinConfig, the DI binding, and all mixing session wiring
  • Mixing UI: CoinJoinActivity, the info/level screens, MixingStatusCard, the MixDashFirst dialog, the settings row, and the mixing notification / foreground-service promotion
  • Config & selectors: coinjoin coin selectors; useCoinJoin threading removed from identity/invite/top-up funding (dashj still receives useCoinJoin=false)
  • Analytics: all mixing analytics events
  • Resources: related strings, drawables, layouts, and navigation entries across every locale

Net: 156 files changed, +390 / −3,760 lines.

What was deliberately kept

  • The wallet still loads as WalletEx, and the CoinJoin keychain is still provisioned on load/create/restore/upgrade. Historical mixed UTXOs therefore remain visible, are counted in the balance, and are selected by the standard ZeroConfCoinSelector — previously-mixed funds stay spendable.
  • Historical mixing transactions keep their grouped display in the transaction list.

Also in this slice

  • Pre-existing broken tests repaired, plus two latent bugs they exposed (gift-card metadata cache overwriting merged fields; CSV export crash on uninitialized metadata map)
  • A latent time-skew dialog bug fixed (seconds double-divided by 1000 and shown as minutes), exposed by removing the coinjoin branch
  • Small dashj seam-neutralization items bundled in the removal commit: neutral SyncStage enum (BlockchainStateProvider no longer exposes PeerGroup.SyncStage/AbstractBlockChain), removal of dead SendPaymentService.isFeeTooHigh, and consolidation of observeSpendableBalance into observeTotalBalance (identical streams once mixing is gone)
  • The phased Kotlin SDK migration plan document (docs/kotlin-sdk-migration-plan.md)

Test evidence

  • Unit suite: :wallet:test_testNet3DebugUnitTest green at this commit (re-verified against the current toolchain: 61 tests, 0 failures), and :wallet:compile_testNet3DebugKotlin / assemble_testNet3Debug build clean
  • On-device regression on testnet: previously-mixed funds confirmed spendable after the removal (balance intact, mixed UTXOs selected and spent by the standard selectors)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a unified wallet synchronization-stage model for clearer sync status reporting.
    • Added invitation creation, payment confirmation, and transaction-error messaging.
    • Improved transaction export reliability by ensuring metadata is available before export.
  • Changes

    • Removed the CoinJoin mixing experience, including its settings, onboarding, status displays, and related messages.
    • Wallet and invitation eligibility checks now use total balance.
    • Standardized time-skew alerts and refreshed privacy-level connectivity warnings.
    • Wallet balance and blockchain synchronization behavior is now simpler and more consistent.

@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 95 files, which is 45 over the limit of 50.

To get a review, narrow the scope:
• coderabbit review --type committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 284fe487-0f78-47f1-93c0-c275e5122be3

📥 Commits

Reviewing files that changed from the base of the PR and between d44b6a5 and 9c9342d.

📒 Files selected for processing (105)
  • common/src/main/java/org/dash/wallet/common/WalletDataProvider.kt
  • common/src/main/java/org/dash/wallet/common/data/SyncStage.kt
  • common/src/main/java/org/dash/wallet/common/data/WalletUIConfig.kt
  • common/src/main/java/org/dash/wallet/common/services/BlockchainStateProvider.kt
  • common/src/main/java/org/dash/wallet/common/services/SendPaymentService.kt
  • common/src/main/java/org/dash/wallet/common/services/analytics/AnalyticsConstants.kt
  • common/src/main/java/org/dash/wallet/common/ui/components/MenuItem.kt
  • common/src/main/res/values-de/strings.xml
  • common/src/main/res/values-el/strings.xml
  • common/src/main/res/values-es/strings.xml
  • common/src/main/res/values-fa/strings.xml
  • common/src/main/res/values-fil/strings.xml
  • common/src/main/res/values-fr/strings.xml
  • common/src/main/res/values-id/strings.xml
  • common/src/main/res/values-it/strings.xml
  • common/src/main/res/values-ja/strings.xml
  • common/src/main/res/values-ko/strings.xml
  • common/src/main/res/values-nl/strings.xml
  • common/src/main/res/values-pl/strings.xml
  • common/src/main/res/values-pt/strings.xml
  • common/src/main/res/values-ru/strings.xml
  • common/src/main/res/values-sk/strings.xml
  • common/src/main/res/values-uk/strings.xml
  • common/src/main/res/values-zh-rTW/strings.xml
  • common/src/main/res/values-zh/strings.xml
  • common/src/main/res/values/strings.xml
  • docs/kotlin-sdk-migration-plan.md
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/network/service/stubs/FakeDashSpendService.kt
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/DashSpendViewModel.kt
  • integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt
  • integrations/crowdnode/src/main/java/org/dash/wallet/integrations/crowdnode/ui/CrowdNodeViewModel.kt
  • integrations/crowdnode/src/test/java/org/dash/wallet/integrations/crowdnode/CrowdNodeViewModelTest.kt
  • wallet/AndroidManifest.xml
  • wallet/androidTest/de/schildbach/wallet/security/SecurityGuardMultiThreadingTest.kt
  • wallet/res/drawable/ic_coinjoin_big.xml
  • wallet/res/drawable/ic_mixing.xml
  • wallet/res/drawable/ic_mixing_icon.xml
  • wallet/res/drawable/ic_unmixed_funds.xml
  • wallet/res/layout/dialog_mix_dash_first.xml
  • wallet/res/layout/fragment_coinjoin_info.xml
  • wallet/res/layout/fragment_coinjoin_level.xml
  • wallet/res/layout/fragment_request_username.xml
  • wallet/res/layout/home_content.xml
  • wallet/res/navigation/nav_coinjoin.xml
  • wallet/res/raw/mixing_anim.json
  • wallet/res/values-de/strings-dashpay.xml
  • wallet/res/values-de/strings-extra.xml
  • wallet/res/values-de/strings.xml
  • wallet/res/values-el/strings-dashpay.xml
  • wallet/res/values-el/strings-extra.xml
  • wallet/res/values-el/strings.xml
  • wallet/res/values-es/strings-dashpay.xml
  • wallet/res/values-es/strings-extra.xml
  • wallet/res/values-es/strings.xml
  • wallet/res/values-fa/strings-dashpay.xml
  • wallet/res/values-fa/strings-extra.xml
  • wallet/res/values-fa/strings.xml
  • wallet/res/values-fil/strings-dashpay.xml
  • wallet/res/values-fil/strings-extra.xml
  • wallet/res/values-fil/strings.xml
  • wallet/res/values-fr/strings-dashpay.xml
  • wallet/res/values-fr/strings-extra.xml
  • wallet/res/values-fr/strings.xml
  • wallet/res/values-id/strings-dashpay.xml
  • wallet/res/values-id/strings-extra.xml
  • wallet/res/values-id/strings.xml
  • wallet/res/values-it/strings-dashpay.xml
  • wallet/res/values-it/strings-extra.xml
  • wallet/res/values-it/strings.xml
  • wallet/res/values-ja/strings-dashpay.xml
  • wallet/res/values-ja/strings-extra.xml
  • wallet/res/values-ja/strings.xml
  • wallet/res/values-ko/strings-dashpay.xml
  • wallet/res/values-ko/strings-extra.xml
  • wallet/res/values-ko/strings.xml
  • wallet/res/values-nl/strings-dashpay.xml
  • wallet/res/values-nl/strings-extra.xml
  • wallet/res/values-nl/strings.xml
  • wallet/res/values-pl/strings-dashpay.xml
  • wallet/res/values-pl/strings-extra.xml
  • wallet/res/values-pl/strings.xml
  • wallet/res/values-pt/strings-dashpay.xml
  • wallet/res/values-pt/strings-extra.xml
  • wallet/res/values-pt/strings.xml
  • wallet/res/values-ru/strings-dashpay.xml
  • wallet/res/values-ru/strings-extra.xml
  • wallet/res/values-ru/strings.xml
  • wallet/res/values-sk/strings-dashpay.xml
  • wallet/res/values-sk/strings-extra.xml
  • wallet/res/values-sk/strings.xml
  • wallet/res/values-tr/strings-dashpay.xml
  • wallet/res/values-uk/strings-dashpay.xml
  • wallet/res/values-uk/strings-extra.xml
  • wallet/res/values-uk/strings.xml
  • wallet/res/values-zh-rTW/strings-dashpay.xml
  • wallet/res/values-zh-rTW/strings-extra.xml
  • wallet/res/values-zh-rTW/strings.xml
  • wallet/res/values-zh/strings-dashpay.xml
  • wallet/res/values-zh/strings-extra.xml
  • wallet/res/values-zh/strings.xml
  • wallet/res/values/strings-dashpay.xml
  • wallet/res/values/strings-extra.xml
  • wallet/res/values/strings.xml
  • wallet/src/de/schildbach/wallet/WalletApplication.java
  • wallet/src/de/schildbach/wallet/data/CoinJoinConfig.kt

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Review on demand using usage pricing
📝 Walkthrough

Walkthrough

This change removes CoinJoin services, UI, persistence, analytics, and mixed-balance APIs. Wallet and DashPay flows now use total balances, blockchain synchronization uses a shared SyncStage, and related resources, dependency wiring, integrations, exporters, and tests are updated.

Changes

Wallet and CoinJoin removal

Layer / File(s) Summary
Domain contracts and balance APIs
common/..., wallet/src/.../WalletBalanceObserver.kt, wallet/src/.../WalletApplication.java
Adds the shared SyncStage model and removes mixed/spendable balance and CoinJoin-specific public APIs.
CoinJoin runtime and transaction flow
wallet/src/.../service/*, wallet/src/.../payments/*, wallet/src/.../di/*
Removes CoinJoin services, configuration, dependency bindings, CoinJoin coin selection, fee handling, and mixing notifications.
Wallet and DashPay UI migration
wallet/src/.../ui/*, wallet/res/layout/*, wallet/res/navigation/*
Removes CoinJoin screens and routing, simplifies settings and username flows, and switches affected balance consumers to total balance.
Resources and localization
common/src/main/res/*, wallet/res/values*/**
Removes obsolete CoinJoin, mixed-funds, MixDash, and time-skew resources while adding or retaining updated privacy and invitation strings.
Validation and supporting behavior
wallet/test/*, wallet/androidTest/*, features/*, integrations/*
Updates mocks, constructor wiring, balance observations, metadata expectations, exporter initialization, and username voting delay assertions.

Estimated code review effort: 4 (Complex) | ~60 minutes

Possibly related PRs

Suggested reviewers: hashengineering, abaranouski

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 4.60% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change and the preserved spendability of previously mixed funds.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/remove-coinjoin-keep-funds-spendable

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bfoss765

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@bfoss765
bfoss765 force-pushed the feat/remove-coinjoin-keep-funds-spendable branch from 83ce13c to d44b6a5 Compare July 14, 2026 02:17
@bfoss765

Copy link
Copy Markdown
Contributor Author

Slimmed this PR to 150 files (the automated reviewer's limit — it skipped at 156): five standalone unreferenced assets moved to the stacked follow-up #1513, and the migration-plan doc moves to the upcoming SDK-integration PR. No code difference; compile + full unit-test gate re-verified on the slimmed branch. The new push should trigger the automated review.

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

Actionable comments posted: 3

🧹 Nitpick comments (4)
wallet/src/de/schildbach/wallet/ui/more/ConfirmInviteDialogFragment.kt (1)

60-61: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Rename spendableBalance to reflect the updated balance source.

Since the balance is now being fetched using observeTotalBalance(), consider renaming the local variable spendableBalance to totalBalance to avoid confusion.

♻️ Proposed refactor
-                    val spendableBalance = invitationFragmentViewModel.walletData.observeTotalBalance().first()
-                    if (spendableBalance < inviteAmount) {
+                    val totalBalance = invitationFragmentViewModel.walletData.observeTotalBalance().first()
+                    if (totalBalance < inviteAmount) {
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/ui/more/ConfirmInviteDialogFragment.kt`
around lines 60 - 61, Rename the local variable spendableBalance to totalBalance
in the invite confirmation balance check, including its comparison with
inviteAmount, to match the observeTotalBalance() source.
integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt (1)

101-103: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoff

Consolidate state streams into a single UIState data class. As per coding guidelines, ViewModels should use a single UIState data class rather than multiple separate flows, and must use StateFlow (not LiveData) for asynchronously updated fields. Consider refactoring the state management in these files to align with the architectural guidelines.

  • integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt#L101-L103: Migrate the LiveData (like _dashBalanceInWalletState) to StateFlow and consolidate into a single UIState.
  • wallet/src/de/schildbach/wallet/ui/send/SendCoinsViewModel.kt#L146-L149: Migrate LiveData (like _maxOutputAmount) to StateFlow and consolidate into a single UIState.
  • wallet/src/de/schildbach/wallet/ui/username/request/RequestUserNameViewModel.kt#L244-L248: Consolidate the multiple separate StateFlow properties (e.g., _walletBalance, _identityBalance) into RequestUserNameUIState.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt`
around lines 101 - 103, Consolidate asynchronously updated ViewModel state into
one immutable UIState StateFlow per screen. In
integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt
lines 101-103, replace the _dashBalanceInWalletState LiveData update with the
relevant UIState field update; in
wallet/src/de/schildbach/wallet/ui/send/SendCoinsViewModel.kt lines 146-149,
migrate _maxOutputAmount and related state into its UIState StateFlow; in
wallet/src/de/schildbach/wallet/ui/username/request/RequestUserNameViewModel.kt
lines 244-248, merge _walletBalance, _identityBalance, and other separate state
flows into RequestUserNameUIState while preserving existing state updates and
consumers.

Source: Coding guidelines

wallet/src/de/schildbach/wallet/ui/invite/CreateInviteViewModel.kt (1)

65-69: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoff

Rename spendableBalance and consolidate state flows into a single UIState.

The balance observation has been updated to use observeTotalBalance(), but the result is still being stored in the spendableBalance property. Consider renaming this property to totalBalance to accurately reflect its content and avoid confusion.

Additionally, this ViewModel uses multiple separate MutableStateFlow properties (e.g., spendableBalance, invitations, blockchainStateData). As per coding guidelines, ViewModels should use a single UIState data class with a private mutable _uiState and a public immutable uiState via asStateFlow().

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/ui/invite/CreateInviteViewModel.kt` around
lines 65 - 69, Rename the balance state from spendableBalance to totalBalance
throughout the CreateInviteViewModel and its consumers. Consolidate
totalBalance, invitations, and blockchainStateData into a single UIState data
class backed by private mutable _uiState and exposed through public
uiState.asStateFlow(), updating each field via state copies while preserving
existing behavior.

Source: Coding guidelines

features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/DashSpendViewModel.kt (1)

226-230: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Represent asynchronously observed balances in the ViewModels’ single StateFlow UI state.

  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/DashSpendViewModel.kt#L226-L230: update DashSpendState rather than _balance LiveData.
  • wallet/src/de/schildbach/wallet/ui/main/MainViewModel.kt#L282-L287: add total balance to the consolidated UI state rather than _totalBalance LiveData.

As per coding guidelines, ViewModels must use a single UIState and StateFlow for asynchronously updated fields.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/DashSpendViewModel.kt`
around lines 226 - 230, Replace the asynchronous balance updates in
DashSpendViewModel.kt at lines 226-230 so observeTotalBalance() updates the
balance field within DashSpendState rather than _balance LiveData. In
wallet/src/de/schildbach/wallet/ui/main/MainViewModel.kt at lines 282-287,
update the consolidated UI state with total balance instead of _totalBalance
LiveData; preserve distinctUntilChanged and existing collection scopes.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt`:
- Line 207: Update both emptyWallet calculations in
wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt at lines
207-207 and 564-564 to use balance >= topupAmount while retaining the upper
dust-threshold check. Apply the same condition consistently at both sites.

In `@wallet/src/de/schildbach/wallet/ui/main/MainActivityExt.kt`:
- Around line 282-289: Update MainActivity.showTimeSkewAlertDialog to pass the
absolute minute difference to wallet_timeskew_dialog_msg by restoring
kotlin.math.abs and wrapping diffSeconds / 60 with abs(...), ensuring the
displayed minute count is non-negative.

In `@wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt`:
- Line 46: Correct both SendCoinsTaskRunner constructor calls in
wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt at
lines 46-46 and 64-64 by passing the WalletDataProvider mock as the first
argument and application (WalletApplication) as the second argument.

---

Nitpick comments:
In
`@features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/DashSpendViewModel.kt`:
- Around line 226-230: Replace the asynchronous balance updates in
DashSpendViewModel.kt at lines 226-230 so observeTotalBalance() updates the
balance field within DashSpendState rather than _balance LiveData. In
wallet/src/de/schildbach/wallet/ui/main/MainViewModel.kt at lines 282-287,
update the consolidated UI state with total balance instead of _totalBalance
LiveData; preserve distinctUntilChanged and existing collection scopes.

In
`@integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt`:
- Around line 101-103: Consolidate asynchronously updated ViewModel state into
one immutable UIState StateFlow per screen. In
integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt
lines 101-103, replace the _dashBalanceInWalletState LiveData update with the
relevant UIState field update; in
wallet/src/de/schildbach/wallet/ui/send/SendCoinsViewModel.kt lines 146-149,
migrate _maxOutputAmount and related state into its UIState StateFlow; in
wallet/src/de/schildbach/wallet/ui/username/request/RequestUserNameViewModel.kt
lines 244-248, merge _walletBalance, _identityBalance, and other separate state
flows into RequestUserNameUIState while preserving existing state updates and
consumers.

In `@wallet/src/de/schildbach/wallet/ui/invite/CreateInviteViewModel.kt`:
- Around line 65-69: Rename the balance state from spendableBalance to
totalBalance throughout the CreateInviteViewModel and its consumers. Consolidate
totalBalance, invitations, and blockchainStateData into a single UIState data
class backed by private mutable _uiState and exposed through public
uiState.asStateFlow(), updating each field via state copies while preserving
existing behavior.

In `@wallet/src/de/schildbach/wallet/ui/more/ConfirmInviteDialogFragment.kt`:
- Around line 60-61: Rename the local variable spendableBalance to totalBalance
in the invite confirmation balance check, including its comparison with
inviteAmount, to match the observeTotalBalance() source.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7d59beed-4dcd-4e78-9c19-4a46a03203ea

📥 Commits

Reviewing files that changed from the base of the PR and between 85b8b57 and d44b6a5.

📒 Files selected for processing (150)
  • common/src/main/java/org/dash/wallet/common/WalletDataProvider.kt
  • common/src/main/java/org/dash/wallet/common/data/SyncStage.kt
  • common/src/main/java/org/dash/wallet/common/data/WalletUIConfig.kt
  • common/src/main/java/org/dash/wallet/common/services/BlockchainStateProvider.kt
  • common/src/main/java/org/dash/wallet/common/services/SendPaymentService.kt
  • common/src/main/java/org/dash/wallet/common/services/analytics/AnalyticsConstants.kt
  • common/src/main/java/org/dash/wallet/common/ui/components/MenuItem.kt
  • common/src/main/res/values-de/strings.xml
  • common/src/main/res/values-el/strings.xml
  • common/src/main/res/values-es/strings.xml
  • common/src/main/res/values-fa/strings.xml
  • common/src/main/res/values-fil/strings.xml
  • common/src/main/res/values-fr/strings.xml
  • common/src/main/res/values-id/strings.xml
  • common/src/main/res/values-it/strings.xml
  • common/src/main/res/values-ja/strings.xml
  • common/src/main/res/values-ko/strings.xml
  • common/src/main/res/values-nl/strings.xml
  • common/src/main/res/values-pl/strings.xml
  • common/src/main/res/values-pt/strings.xml
  • common/src/main/res/values-ru/strings.xml
  • common/src/main/res/values-sk/strings.xml
  • common/src/main/res/values-uk/strings.xml
  • common/src/main/res/values-zh-rTW/strings.xml
  • common/src/main/res/values-zh/strings.xml
  • common/src/main/res/values/strings.xml
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/network/service/stubs/FakeDashSpendService.kt
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/ui/dashspend/DashSpendViewModel.kt
  • integrations/coinbase/src/main/java/org/dash/wallet/integrations/coinbase/viewmodels/TransferDashViewModel.kt
  • integrations/crowdnode/src/main/java/org/dash/wallet/integrations/crowdnode/ui/CrowdNodeViewModel.kt
  • integrations/crowdnode/src/test/java/org/dash/wallet/integrations/crowdnode/CrowdNodeViewModelTest.kt
  • wallet/AndroidManifest.xml
  • wallet/androidTest/de/schildbach/wallet/security/SecurityGuardMultiThreadingTest.kt
  • wallet/res/layout/activity_coinjoin.xml
  • wallet/res/layout/dialog_mix_dash_first.xml
  • wallet/res/layout/fragment_coinjoin_info.xml
  • wallet/res/layout/fragment_coinjoin_level.xml
  • wallet/res/layout/fragment_request_username.xml
  • wallet/res/layout/home_content.xml
  • wallet/res/navigation/nav_coinjoin.xml
  • wallet/res/values-de/strings-dashpay.xml
  • wallet/res/values-de/strings-extra.xml
  • wallet/res/values-de/strings.xml
  • wallet/res/values-el/strings-dashpay.xml
  • wallet/res/values-el/strings-extra.xml
  • wallet/res/values-el/strings.xml
  • wallet/res/values-es/strings-dashpay.xml
  • wallet/res/values-es/strings-extra.xml
  • wallet/res/values-es/strings.xml
  • wallet/res/values-fa/strings-dashpay.xml
  • wallet/res/values-fa/strings-extra.xml
  • wallet/res/values-fa/strings.xml
  • wallet/res/values-fil/strings-dashpay.xml
  • wallet/res/values-fil/strings-extra.xml
  • wallet/res/values-fil/strings.xml
  • wallet/res/values-fr/strings-dashpay.xml
  • wallet/res/values-fr/strings-extra.xml
  • wallet/res/values-fr/strings.xml
  • wallet/res/values-id/strings-dashpay.xml
  • wallet/res/values-id/strings-extra.xml
  • wallet/res/values-id/strings.xml
  • wallet/res/values-it/strings-dashpay.xml
  • wallet/res/values-it/strings-extra.xml
  • wallet/res/values-it/strings.xml
  • wallet/res/values-ja/strings-dashpay.xml
  • wallet/res/values-ja/strings-extra.xml
  • wallet/res/values-ja/strings.xml
  • wallet/res/values-ko/strings-dashpay.xml
  • wallet/res/values-ko/strings-extra.xml
  • wallet/res/values-ko/strings.xml
  • wallet/res/values-nl/strings-dashpay.xml
  • wallet/res/values-nl/strings-extra.xml
  • wallet/res/values-nl/strings.xml
  • wallet/res/values-pl/strings-dashpay.xml
  • wallet/res/values-pl/strings-extra.xml
  • wallet/res/values-pl/strings.xml
  • wallet/res/values-pt/strings-dashpay.xml
  • wallet/res/values-pt/strings-extra.xml
  • wallet/res/values-pt/strings.xml
  • wallet/res/values-ru/strings-dashpay.xml
  • wallet/res/values-ru/strings-extra.xml
  • wallet/res/values-ru/strings.xml
  • wallet/res/values-sk/strings-dashpay.xml
  • wallet/res/values-sk/strings-extra.xml
  • wallet/res/values-sk/strings.xml
  • wallet/res/values-tr/strings-dashpay.xml
  • wallet/res/values-uk/strings-dashpay.xml
  • wallet/res/values-uk/strings-extra.xml
  • wallet/res/values-uk/strings.xml
  • wallet/res/values-zh-rTW/strings-dashpay.xml
  • wallet/res/values-zh-rTW/strings-extra.xml
  • wallet/res/values-zh-rTW/strings.xml
  • wallet/res/values-zh/strings-dashpay.xml
  • wallet/res/values-zh/strings-extra.xml
  • wallet/res/values-zh/strings.xml
  • wallet/res/values/strings-dashpay.xml
  • wallet/res/values/strings-extra.xml
  • wallet/res/values/strings.xml
  • wallet/src/de/schildbach/wallet/WalletApplication.java
  • wallet/src/de/schildbach/wallet/data/CoinJoinConfig.kt
  • wallet/src/de/schildbach/wallet/database/entity/BlockchainIdentityData.kt
  • wallet/src/de/schildbach/wallet/di/AppModule.kt
  • wallet/src/de/schildbach/wallet/di/DashPayModule.kt
  • wallet/src/de/schildbach/wallet/payments/MaxOutputAmountCoinJoinCoinSelector.kt
  • wallet/src/de/schildbach/wallet/payments/SendCoinsTaskRunner.kt
  • wallet/src/de/schildbach/wallet/service/BlockchainServiceImpl.kt
  • wallet/src/de/schildbach/wallet/service/BlockchainStateDataProvider.kt
  • wallet/src/de/schildbach/wallet/service/CoinJoinService.kt
  • wallet/src/de/schildbach/wallet/service/ForegroundService.kt
  • wallet/src/de/schildbach/wallet/service/WalletFactory.kt
  • wallet/src/de/schildbach/wallet/service/WalletTransactionMetadataProvider.kt
  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt
  • wallet/src/de/schildbach/wallet/service/platform/work/RestoreIdentityWorker.kt
  • wallet/src/de/schildbach/wallet/service/platform/work/TopupIdentityWorker.kt
  • wallet/src/de/schildbach/wallet/transactions/CSVExporter.kt
  • wallet/src/de/schildbach/wallet/transactions/TransactionExporter.kt
  • wallet/src/de/schildbach/wallet/transactions/WalletBalanceObserver.kt
  • wallet/src/de/schildbach/wallet/ui/InviteHandlerViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/OnboardingViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/SettingsFragment.kt
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinActivity.kt
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinInfoFragment.kt
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinLevelFragment.kt
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinLevelViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/dashpay/CreateIdentityService.kt
  • wallet/src/de/schildbach/wallet/ui/dashpay/CreateIdentityViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/dashpay/PlatformRepo.kt
  • wallet/src/de/schildbach/wallet/ui/dashpay/utils/DashPayConfig.kt
  • wallet/src/de/schildbach/wallet/ui/invite/CreateInviteViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/invite/InvitationFeeDialogFragment.kt
  • wallet/src/de/schildbach/wallet/ui/main/MainActivity.kt
  • wallet/src/de/schildbach/wallet/ui/main/MainActivityExt.kt
  • wallet/src/de/schildbach/wallet/ui/main/MainViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/main/MixingStatusCard.kt
  • wallet/src/de/schildbach/wallet/ui/main/WalletFragment.kt
  • wallet/src/de/schildbach/wallet/ui/more/ConfirmInviteDialogFragment.kt
  • wallet/src/de/schildbach/wallet/ui/more/MixDashFirstDialogFragment.kt
  • wallet/src/de/schildbach/wallet/ui/more/MixDashFirstViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/more/MoreFragment.kt
  • wallet/src/de/schildbach/wallet/ui/more/SettingsScreen.kt
  • wallet/src/de/schildbach/wallet/ui/more/SettingsViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/send/SendCoinsFragment.kt
  • wallet/src/de/schildbach/wallet/ui/send/SendCoinsViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/username/request/RequestUserNameViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/username/request/RequestUsernameFragment.kt
  • wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt
  • wallet/test/de/schildbach/wallet/service/WalletTransactionMetadataProviderGiftCardTest.kt
  • wallet/test/de/schildbach/wallet/ui/dashpay/work/GetUsernameVotingResultOperationTest.kt
  • wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt
  • wallet/test/de/schildbach/wallet/util/viewModels/MainViewModelTest.kt
💤 Files with no reviewable changes (114)
  • wallet/res/layout/fragment_coinjoin_level.xml
  • common/src/main/res/values-it/strings.xml
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinInfoFragment.kt
  • common/src/main/res/values-ja/strings.xml
  • wallet/res/layout/fragment_coinjoin_info.xml
  • wallet/res/layout/home_content.xml
  • wallet/res/layout/activity_coinjoin.xml
  • wallet/src/de/schildbach/wallet/payments/MaxOutputAmountCoinJoinCoinSelector.kt
  • common/src/main/res/values-ko/strings.xml
  • common/src/main/res/values-el/strings.xml
  • wallet/src/de/schildbach/wallet/ui/more/MixDashFirstDialogFragment.kt
  • common/src/main/res/values-id/strings.xml
  • wallet/src/de/schildbach/wallet/ui/more/MixDashFirstViewModel.kt
  • wallet/src/de/schildbach/wallet/ui/username/request/RequestUsernameFragment.kt
  • wallet/res/layout/fragment_request_username.xml
  • common/src/main/res/values-fil/strings.xml
  • common/src/main/res/values-pl/strings.xml
  • wallet/res/layout/dialog_mix_dash_first.xml
  • wallet/src/de/schildbach/wallet/data/CoinJoinConfig.kt
  • wallet/res/values-zh/strings.xml
  • wallet/res/values-fa/strings-extra.xml
  • wallet/res/values-el/strings-extra.xml
  • common/src/main/java/org/dash/wallet/common/WalletDataProvider.kt
  • common/src/main/res/values-nl/strings.xml
  • common/src/main/res/values-fa/strings.xml
  • wallet/src/de/schildbach/wallet/ui/send/SendCoinsFragment.kt
  • wallet/AndroidManifest.xml
  • common/src/main/res/values-uk/strings.xml
  • wallet/res/values-it/strings.xml
  • wallet/res/values-id/strings-extra.xml
  • common/src/main/res/values-sk/strings.xml
  • common/src/main/res/values-pt/strings.xml
  • common/src/main/res/values-zh-rTW/strings.xml
  • wallet/src/de/schildbach/wallet/di/DashPayModule.kt
  • wallet/src/de/schildbach/wallet/ui/main/MixingStatusCard.kt
  • wallet/res/values-ja/strings-extra.xml
  • common/src/main/res/values-es/strings.xml
  • wallet/res/values-ko/strings.xml
  • wallet/src/de/schildbach/wallet/ui/dashpay/utils/DashPayConfig.kt
  • wallet/res/values-pl/strings-extra.xml
  • wallet/res/values-uk/strings-extra.xml
  • wallet/src/de/schildbach/wallet/ui/main/WalletFragment.kt
  • wallet/res/values-pt/strings-extra.xml
  • wallet/res/values-fil/strings.xml
  • wallet/res/values-sk/strings.xml
  • features/exploredash/src/main/java/org/dash/wallet/features/exploredash/network/service/stubs/FakeDashSpendService.kt
  • wallet/res/values-id/strings.xml
  • wallet/res/values-es/strings-extra.xml
  • wallet/res/values-tr/strings-dashpay.xml
  • wallet/src/de/schildbach/wallet/service/platform/work/TopupIdentityWorker.kt
  • wallet/src/de/schildbach/wallet/ui/SettingsFragment.kt
  • wallet/res/values-fr/strings-extra.xml
  • wallet/res/values-el/strings.xml
  • wallet/res/values-it/strings-extra.xml
  • wallet/res/values-zh-rTW/strings.xml
  • wallet/src/de/schildbach/wallet/ui/dashpay/PlatformRepo.kt
  • common/src/main/res/values-de/strings.xml
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinLevelViewModel.kt
  • common/src/main/res/values/strings.xml
  • wallet/res/values-pt/strings.xml
  • common/src/main/res/values-ru/strings.xml
  • wallet/res/navigation/nav_coinjoin.xml
  • wallet/src/de/schildbach/wallet/service/CoinJoinService.kt
  • wallet/res/values-ru/strings-extra.xml
  • wallet/res/values-sk/strings-extra.xml
  • wallet/res/values-es/strings.xml
  • wallet/src/de/schildbach/wallet/service/platform/work/RestoreIdentityWorker.kt
  • wallet/res/values-fa/strings.xml
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinLevelFragment.kt
  • wallet/res/values-pl/strings.xml
  • wallet/androidTest/de/schildbach/wallet/security/SecurityGuardMultiThreadingTest.kt
  • wallet/res/values-de/strings-extra.xml
  • wallet/src/de/schildbach/wallet/ui/coinjoin/CoinJoinActivity.kt
  • wallet/res/values-ko/strings-extra.xml
  • wallet/res/values/strings-extra.xml
  • wallet/res/values-nl/strings.xml
  • wallet/res/values-uk/strings.xml
  • wallet/res/values-zh-rTW/strings-extra.xml
  • wallet/src/de/schildbach/wallet/database/entity/BlockchainIdentityData.kt
  • common/src/main/res/values-fr/strings.xml
  • wallet/res/values-fil/strings-extra.xml
  • common/src/main/res/values-zh/strings.xml
  • common/src/main/java/org/dash/wallet/common/data/WalletUIConfig.kt
  • wallet/res/values-nl/strings-dashpay.xml
  • wallet/src/de/schildbach/wallet/transactions/WalletBalanceObserver.kt
  • common/src/main/java/org/dash/wallet/common/services/analytics/AnalyticsConstants.kt
  • common/src/main/java/org/dash/wallet/common/services/SendPaymentService.kt
  • wallet/res/values-fa/strings-dashpay.xml
  • wallet/res/values-zh/strings-dashpay.xml
  • wallet/res/values-zh-rTW/strings-dashpay.xml
  • wallet/res/values-fr/strings.xml
  • wallet/res/values-nl/strings-extra.xml
  • wallet/src/de/schildbach/wallet/ui/dashpay/CreateIdentityViewModel.kt
  • wallet/res/values-ko/strings-dashpay.xml
  • wallet/res/values-fil/strings-dashpay.xml
  • wallet/res/values-el/strings-dashpay.xml
  • wallet/res/values-es/strings-dashpay.xml
  • wallet/res/values-ja/strings.xml
  • wallet/res/values-uk/strings-dashpay.xml
  • wallet/res/values-zh/strings-extra.xml
  • wallet/res/values-id/strings-dashpay.xml
  • wallet/test/de/schildbach/wallet/payments/SendCoinsTaskRunnerBIP70Test.kt
  • wallet/res/values-pt/strings-dashpay.xml
  • wallet/res/values-de/strings.xml
  • wallet/res/values-ru/strings.xml
  • wallet/src/de/schildbach/wallet/ui/more/SettingsViewModel.kt
  • wallet/res/values-fr/strings-dashpay.xml
  • wallet/res/values-it/strings-dashpay.xml
  • wallet/res/values-sk/strings-dashpay.xml
  • wallet/res/values-ja/strings-dashpay.xml
  • wallet/res/values-ru/strings-dashpay.xml
  • wallet/res/values-de/strings-dashpay.xml
  • wallet/res/values/strings-dashpay.xml
  • wallet/res/values-pl/strings-dashpay.xml

): AssetLockTransaction {
Context.propagate(walletDataProvider.wallet!!.context)
val balance = walletDataProvider.wallet!!.getBalance(Wallet.BalanceType.ESTIMATED_SPENDABLE)
val emptyWallet = balance == topupAmount && balance <= (topupAmount + Transaction.MIN_NONDUST_OUTPUT)

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fix logical error in empty-wallet dust calculations.

Using == with && in the emptyWallet condition means it will only evaluate to true if balance is exactly equal to topupAmount. It will incorrectly return false if the wallet has a small dust remainder (e.g., when balance is slightly greater than topupAmount but less than the dust threshold). Use >= to properly check if the remaining change falls in the dust range.

  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt#L207-L207: Update to val emptyWallet = balance >= topupAmount && balance <= (topupAmount + Transaction.MIN_NONDUST_OUTPUT)
  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt#L564-L564: Update to val emptyWallet = balance >= topupAmount && balance <= (topupAmount + Transaction.MIN_NONDUST_OUTPUT)
📍 Affects 1 file
  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt#L207-L207 (this comment)
  • wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt#L564-L564
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt` at line
207, Update both emptyWallet calculations in
wallet/src/de/schildbach/wallet/service/platform/TopUpRepository.kt at lines
207-207 and 564-564 to use balance >= topupAmount while retaining the upper
dust-threshold check. Apply the same condition consistently at both sites.

Comment on lines +282 to +289
private fun MainActivity.showTimeSkewAlertDialog(diffSeconds: Long) {
val settingsIntent = Intent(Settings.ACTION_DATE_SETTINGS)
val hasSettings = packageManager.resolveActivity(settingsIntent, 0) != null

AdaptiveDialog.create(
R.drawable.ic_warning,
getString(R.string.wallet_timeskew_dialog_title),
if (coinJoin) {
val position = getString(if (diffSeconds > 0) R.string.timeskew_ahead else R.string.timeskew_behind)
getString(R.string.wallet_coinjoin_timeskew_dialog_msg, position, abs(diffSeconds))
} else {
getString(R.string.wallet_timeskew_dialog_msg, diffSeconds / 1000)
},
getString(R.string.wallet_timeskew_dialog_msg, diffSeconds / 60),

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Check the time skew dialog message string.
rg 'wallet_timeskew_dialog_msg' wallet/res/values/strings.xml

Repository: dashpay/dash-wallet

Length of output: 397


🏁 Script executed:

#!/bin/bash
set -euo pipefail

file="wallet/src/de/schildbach/wallet/ui/main/MainActivityExt.kt"

echo "== imports =="
sed -n '1,60p' "$file"

echo
echo "== dialog section =="
sed -n '270,300p' "$file"

Repository: dashpay/dash-wallet

Length of output: 3904


Use the absolute minute count here. wallet_timeskew_dialog_msg expects “%d minutes”, so diffSeconds / 60 can render a negative value when the device clock is behind. Restore kotlin.math.abs and wrap the argument in abs(...).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/src/de/schildbach/wallet/ui/main/MainActivityExt.kt` around lines 282
- 289, Update MainActivity.showTimeSkewAlertDialog to pass the absolute minute
difference to wallet_timeskew_dialog_msg by restoring kotlin.math.abs and
wrapping diffSeconds / 60 with abs(...), ensuring the displayed minute count is
non-negative.

val application = mockk<WalletApplication>()

val sendCoinsTaskRunner = SendCoinsTaskRunner(application, mockk(), mockk(), mockk(), mockk(), mockk(), coinJoinConfig, coinJoinService, mockk(), mockk(), mockk())
val sendCoinsTaskRunner = SendCoinsTaskRunner(application, mockk(), mockk(), mockk(), mockk(), mockk(), mockk(), mockk(), mockk())

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.

🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Fix both SendCoinsTaskRunner constructor calls.

The constructor requires WalletDataProvider followed by WalletApplication.

  • wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt#L46-L46: move application to the second argument.
  • wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt#L64-L64: apply the same argument-order correction.
📍 Affects 1 file
  • wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt#L46-L46 (this comment)
  • wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt#L64-L64
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt` at
line 46, Correct both SendCoinsTaskRunner constructor calls in
wallet/test/de/schildbach/wallet/util/services/SendCoinsTaskRunnerTest.kt at
lines 46-46 and 64-64 by passing the WalletDataProvider mock as the first
argument and application (WalletApplication) as the second argument.

bfoss765 and others added 3 commits July 16, 2026 07:37
…placement for CoinJoin)

Co-Authored-By: Claude Fable 5 <[email protected]>
- gift-card metadata cache wrote the partially-populated incoming card instead of
  the merged one, erasing stored fields; also merge redeemUrlChallenge like other fields
- CSV export crashed with uninitialized metadataMap unless callers remembered
  initMetadataMap(); exportString() now self-initializes
- GetUsernameVotingResultOperationTest assumed a 2-minute buffer; production
  DELAY_AFTER_VOTING_PERIOD is 1 minute
- gift-card test updated for the insertGiftCardData signature added by the
  redeem-url change (order/giftCardChallenge/index)

Co-Authored-By: Claude Fable 5 <[email protected]>
CoinJoin removal (Phase 2 of the Kotlin SDK migration plan):
- delete the mixing engine wiring (CoinJoinService, CoinJoinConfig, DI binding),
  all mixing UI (CoinJoinActivity/info/level screens, MixingStatusCard,
  MixDashFirst dialog, settings row), mixing notification/foreground-service
  promotion, coinjoin coin selectors, analytics events, and all related
  strings/drawables/layouts/nav across every locale
- previously mixed funds STAY SPENDABLE: the wallet still loads as WalletEx and
  the CoinJoin keychain is still provisioned on load/create/restore/upgrade, so
  legacy mixed UTXOs remain visible and are selected by the standard
  ZeroConfCoinSelector; historical mixing transactions keep grouped display
- send flow always uses the standard selectors; useCoinJoin threading removed
  from identity/invite/top-up funding (dashj still receives useCoinJoin=false)
- fix latent time-skew dialog bug exposed by removing the coinjoin branch
  (seconds were divided by 1000 again and shown as minutes)

Start of Phase 1 (dashj seam neutralization in common):
- new neutral SyncStage enum; BlockchainStateProvider no longer exposes
  PeerGroup.SyncStage or AbstractBlockChain
- remove dead SendPaymentService.isFeeTooHigh (no callers, always false)
- consolidate observeSpendableBalance into observeTotalBalance (identical
  streams after mixing removal)

Verified: assemble_testNet3Debug and the full wallet unit-test suite pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
@bfoss765

bfoss765 commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #1532.

The CoinJoin removal this PR performs is already contained in the Phase 1 cutover branch (feat/kotlin-sdk-phase1), which is going forward as a single PR rather than being split. Verified before closing:

  • Every file this PR deletes is also absent from feat/kotlin-sdk-phase1 — no deletion here is missing there.
  • CoinJoinService.kt is present on master, absent on both this branch and the cutover branch.
  • The set of source files still referencing CoinJoin is the same on both branches. The cutover branch has additional references, but all of them are new code under service/platform/sdk/ that deliberately reads CoinJoin-tagged accounts to detect and migrate previously-mixed funds — not leftovers from the mixing engine.

Any remaining cleanup or refactoring will be handled in Phase 1B / 2 / 3 (#1520, #1521, #1522).

@bfoss765 bfoss765 closed this Aug 2, 2026
@bfoss765
bfoss765 deleted the feat/remove-coinjoin-keep-funds-spendable branch August 2, 2026 21:26
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.

1 participant