You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shielded identity balance: tell a busy store apart from other failures #6201
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.
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.
Activity
fix(platform-wallet): give a busy shielded identity balance read its …
fix(platform-wallet): give a busy shielded identity balance read its …
QuantumExplorer commentedon Nov 24, 2026
Done in #6191 (merged as 537bc3e): a busy identity balance read has its own result code,
ErrorShieldedBalanceBusy(87), mapped from the wallet'sPlatformWalletError::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.