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: free a private contact request's pair once its payment is proven unable to execute #6161
A private contact request payment (a private document create from the shielded pool, type 29) holds its sender and recipient pair through the private payment journal in the shielded store. Both contact send paths check the journal, so no public or private request to that contact goes out while a record is there.
The journal record is discharged in two ways only: a private sync reads the entry back, or discharge_expired_private_payments (rs-platform-wallet/src/wallet/shielded/coordinator.rs) proves the spend's anchor pruned and reads the private contact request store through its end without finding the entry.
Since #6151 the note scan can prove much earlier that the payment can never execute: it reads another transition's action spending one of the payment's inputs. The activity row then reads Failed, but the pair stays held until the anchor expires (about 1000 blocks), as it did before #6151, when the row stayed Pending over the same period.
What a fix needs
Hand the proved conflict and the height it was proved at to the journal's resolver, so it can run its existing verified read of the private contact request store at or above that height without waiting for the anchor to expire.
Do not free the pair from the Failed row alone. An entry that did land still has to be read back and recorded.
Activity