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
platform-wallet: identity slot lease follow-ups from #6014 #6243
#6014 gives identity slots a wallet-owned lease. These follow-ups were raised in its review and left out of that PR on purpose.
1. Persisted hold for address-funded registrations and voucher reclaims
Problem: Registration leases live in memory only. An address-funded registration (register_from_addresses) or a voucher reclaim that is reported unconfirmed keeps its lease Submitted for the rest of the process. After a restart, nothing holds its index until the identity lands and discovery finds it.
Current safeguard: a new registration at that index is caught by the pre-funding check (82) only once the identity exists on Platform.
Proposal: persist the index with the operation's record, as shielded identity creates do (PendingRedrive::identity_index), and hold it from that record at load.
2. SDK dispatch boundary for invitation claims
Problem:DashPay::claim_invitation returns a transport Sdk error the same way before and after broadcast. So the wallet keeps a claim's lease Submitted on any such error. This fails safe (the release is refused, and a retry of the claim or startup settlement recovers the slot), but it holds a slot the claim may never have used.
Proposal: expose the point of dispatch from the SDK, so a preflight failure can return the slot. Serialize concurrent attempts of the same outpoint.
3. Example apps do not run startup settlement
Problem: SwiftExampleApp and KotlinExampleApp restore wallets with loadFromPersistor / loadPersistedWallets but never call startWalletSubsystems. So claim leases restored from the store are never settled against Platform. The same call also runs the persisted-drain, discovery and SPV start sequence, so wiring it in is a behaviour change for both apps.
Proposal: call it after load in both apps, or add a narrow settlement export the apps call.
4. Wallet-side bound on the 82 retry
Problem: The bound on re-acquiring after ErrorIdentitySlotTakenOnChain lives in each host (IDENTITY_SLOT_TAKEN_RETRY_LIMIT).
Proposal: move the decision into the wallet so C, Swift and Kotlin hosts do not each repeat it.
Activity