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: track a signed DPNS name give-up and reconcile it before allowing another #6072
Once a DPNS name give-up (delete or tombstone, protocol version 15) has been signed and may have reached the network, the wallet treats that exact signed transition as pending until its outcome is known. It refuses another give-up of the same name until then, including after the app restarts.
Current Behavior
Since #6055, IdentityWallet::give_up_dpns_name holds a give-up as unresolved from the moment the host's signature returns, in DpnsOperationGate. Gaps remain:
Session-scoped. The hold is in memory only. A give-up sent and not confirmed before a process restart is offered again after the restart. The parity entry dpns.give_up_name marks Swift restart: required for this reason.
Settled by name, not by attempt. The hold is cleared when a read shows the name not registered, or held by another identity, keyed by owner and label alone. The read's proof height is dropped (Sdk::dpns_name_document), and document queries tolerate a one-block lag. So a read one block behind the signing can clear the hold while the give-up is still pending.
Stuck the other way. If the signed transition is refused and pays for it, or is dropped, while the name stays owned, the hold stays until the app restarts.
Endpoint refusals. A first-attempt broadcast refusal that carries a consensus verdict is classified as definite by the SDK's shared broadcast outcome, so the hold is released. Contact requests treat such a verdict as possibly delivered (broadcast_tracking_delivery). See fix(sdk): preserve uncertain submission outcomes through shared broadcast #5556.
Possible Solution
Track the signed give-up as contact requests track a send. Keep the signed transition (this needs a sign-only path for the DPNS delete and tombstone in the SDK). Settle it through state_transition_outcome, qualifying any ownership read by its proof height. Persist the pending attempt so it is restored before either action is offered again (changeset, persister vtable, Swift and Kotlin hosts). Same shape as #6067 for data contract updates.
Context
Review of #6055 (threads on give_up.rs); deferred there as a follow-up because it needs new SDK and persistence surface.
One more case, on the success path rather than the read that clears the hold. A delete give-up is confirmed through Sdk::document_delete, whose proved result only shows the document absent, so the confirmation is not tied to a block after the ownership read. That check belongs in the SDK's shared delete for every caller and is filed as #6076. Settling the signed attempt here should rely on it.
Activity
QuantumExplorer commentedon Nov 22, 2026
One more case, on the success path rather than the read that clears the hold. A delete give-up is confirmed through
Sdk::document_delete, whose proved result only shows the document absent, so the confirmation is not tied to a block after the ownership read. That check belongs in the SDK's shared delete for every caller and is filed as #6076. Settling the signed attempt here should rely on it.