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.
[fastx client] Adding robust client <-> authorities primitives (Myste…
…nLabs#336) * We include a generic map/reduce pattern for interacting with authorities, in which we provide an async function to query each authority, and then a reduce function to aggregate responses, and adaptively end, continue or timeout the queries. * We use the abstraction to retrieve objects at all versions that are know by the authorities to be owned by an address. * We use the abstraction to retrieve all versions of an object known by the authorities and associated certificates. * We use the abstraction to update authorities to the latest state of objected owned by an address using the latest certs. * Augmented the authority with an object version in `parent_sync` when the object is deleted, and a link back to the cert that deleted it. * Changed the semantics of ObjectInfoRequest to return the latest `ObjectRef` for an object id, and the certificate that leads to it, including for deleted objects. Co-authored-by: George Danezis <[email protected]>
- Loading branch information
Showing
9 changed files
with
1,138 additions
and
56 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
Oops, something went wrong.