-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fastx client] Sender Local State Still Holds Transferred Object #105
Comments
Agree, I think we should update the local copy once the owner changed |
Is this just a question of filtering out objects that are not owned by this user when producing this list? |
@gdanezis that's one way to do it at query time, which we'll need when syncing for recvd objects anyways. |
@patrickkuo should I fix this? Or do you wanna do it as part of your enhancements to |
it's a small fix, I can include it in my PR, the "transferred" object_id should be safe to remove as the client don't really need it locally anymore, one question I have is do we prune the certificates as well or not... |
Okay, if it's small, I can wait or cherry pick it. |
I think this is fixed based on what I saw in the demo--please reopen if not! |
This commit wires in the block-remover component to the primary node setup.
This commit wires in the block-remover component to the primary node setup.
TLDR:
Transferring an object still retains the object within the sender's
object_ids
records.Is this expected? Can we simply wipe the local record after sending?
Example: based on enhancements in #91
Store two account addresses for use
Get the objects for this account (sender) by checking its local view of its object_ids. See impl for getting own objects: https://github.com/MystenLabs/fastnft/pull/91/files#diff-6e566db7624762b34cc7884f7a5cce3e9825cf696dfe1806fe9a6a094e11aacdR456
Get the objects for this account (recipient) by checking its local view of its object_ids
Store the objects available for sender in ACCOUNT1_OBJECT1
Transfer ACCOUNT1_OBJECT1 from ACCOUNT1 to ACCOUNT2
Check ACCOUNT2 objects state. Has the new object and seq number is updated
Check ACCOUNT1 objects state. Still has old object, but seq number is updated
The text was updated successfully, but these errors were encountered: