Previously, when a reticket is performed with a stale invite in the cache, the old ticket value will be used instead of the newly generated value when creating the invite wallet.
This change:
only stores the generated invite if it's unclaimed
removes it from the cache upon reticketing or determining if it's been claimed
Testing
Two potential flows that lead to reticket
L2 Invite --> Restored to Owner --> Reticketed
[x] Tested on Ropsten with ~bornet / ~bisbel-batryd
using a monkeypatched local Bridge, select an L2 star and generate an invite. confirm visibility in invites view, which also caches it in localstorage
restore the invite to original owner
using the bugfix branch local Bridge, select Update Invites ... select the planet to reticket
confirm visibility in invites view
Spawned --> Reticketed
[x] Tested on Ropsten with ~bornet / ~randuc-minnum
select an L2 star, spawn a new planet under Star Ops
from the family view, select Update Invites and select the newly spawned planet
Context
Previously, when a reticket is performed with a stale invite in the cache, the old ticket value will be used instead of the newly generated value when creating the invite wallet.
This change:
Testing
Two potential flows that lead to reticket
L2 Invite --> Restored to Owner --> Reticketed
Spawned --> Reticketed