Skip to content

Shielded identity balance: tell a busy store apart from other failures #6201

Done

Description

@QuantumExplorer

Problem

platform_wallet_manager_shielded_identity_balance waits at most 100 ms for the shielded store. When the store is busy it returns ErrorWalletOperation (6), and #6192's docs tell hosts to keep the last state on screen and read again. But the same code also comes back for failures that will not clear by retrying, such as an unknown wallet or a coordinator that could not be configured. A host cannot tell the two apart without reading the message text, so it either retries a permanent failure forever or shows a busy store as an error.

Found in review of #6198 (SwiftExampleApp tip screens). KotlinExampleApp has the same read.

Proposed fix (wallet FFI, not the hosts)

Give the busy case its own result code (or a typed PlatformWalletError variant mapped to one) in rs-platform-wallet-ffi/src/shielded_tip.rs. Map it in the Swift (PlatformWalletResult.swift) and Kotlin (DashSdkError.kt) SDKs, and document that only this code means "keep the last state and read again". Every other code means show the error.

Test: a read made while the store is held returns the new code, and an unknown wallet still returns its existing code.

Until then

The Swift app shows the wallet's message when the read fails with code 6, keeps the last balance it read, and backs off when it reads again.

Activity

  1. added 2 commits that reference this issue on Nov 24, 2026
    cf1665c
    4e33c21
  2. QuantumExplorer commented on Nov 24, 2026

    @QuantumExplorer
    MemberAuthor

    Done in #6191 (merged as 537bc3e): a busy identity balance read has its own result code, ErrorShieldedBalanceBusy (87), mapped from the wallet's PlatformWalletError::ShieldedBalanceBusy. The Swift and Kotlin SDKs type it (shieldedBalanceBusy, ShieldedBalanceBusy) since #6192. The pull request named this issue as closed by it, but only the first issue in that sentence was closed automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions