forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1/x][lamport] Get rid of TransactionEffects::is_object_mutated_here (M…
…ystenLabs#5851) Spotted while working on lamport timestamps. This function is only called in one place (`AuthorityAggregator::get_object_info_execute`) to check that a validator that object info is being read from isn't Byzantine, but it is only used in Gateway, and benchmarks. The former is going away soon, and the latter does not need to worry about byzantine validators. Furthermore, the logic in this function for deleted and wrapped objects does not seem correct: It asserts that an object is deleted in effects if it appears in the deleted effects at `version - 1`, but the logic in `TemporaryStore::delete_object` increments an object's version when it is deleted, so it should match. Opting to remove the code to re-execute certificates instead of trying to make it work with lamport timestamps as there's a good chance it's not currently working and therefore needed.
- Loading branch information
Showing
2 changed files
with
4 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters