-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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 Authority] Deleted objects cause incorrect client reads #282
Labels
Type: Bug
Something isn't working
Comments
gdanezis
pushed a commit
that referenced
this issue
Jan 28, 2022
gdanezis
added a commit
that referenced
this issue
Jan 29, 2022
… and two authorities. (#285) * Fix authority idempotency bug, and start work on sync_authority_source_to_destination * Added safer sync function * Refined the error returned when signatures fail. * Add tests for sync, and report BUGs. * Created a delete test that fails due to a known bug (BUG(#282)) Co-authored-by: George Danezis <[email protected]>
Note that PR #311 circumvents this bug for authority to authority sync, but does not fix it. |
gdanezis
added a commit
that referenced
this issue
Jan 31, 2022
…otentially deleted objects (#315) * Remove unused request_received_transfers_excluding_first_nth in ObjectOrderRequest. * Rename to pending_order * Rename parent_certificate * Changed the structure of ObjectInfoResponse * Use helper function to get object Co-authored-by: George Danezis <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When an object is deleted the fastx authority would remove it from its database. However an ObjectInfoRequest may still be used to get the parent TransactionDigest at a previous (existing) object version. However, the current logic below, would in addition to returning a cert, also try to read the latest object (which does not work) and return an Err with no info on the previous Transaction Digest of the object.
https://github.com/MystenLabs/fastnft/blob/3953018b06ebb405ff3b41b7e5f43df27149eda3/fastpay_core/src/authority.rs#L415-L419
The text was updated successfully, but these errors were encountered: