Skip to content

Commit

Permalink
[fastx client] Use new client functions, and remove old logic (Part 2) (
Browse files Browse the repository at this point in the history
MystenLabs#381)

* Added testing shorthands + test for get_all_owned_objects
* Added logic for processing order and certificate
* Use local structs for broadcast functions.
* Use new logic for sync with authorities
* Added test for sync_all_owned_objects
* Simplify test functions
* Delete old functions
* Remove requester and downloader

Co-authored-by: George Danezis <[email protected]>
  • Loading branch information
gdanezis and George Danezis authored Feb 9, 2022
1 parent ee0f370 commit e669843
Show file tree
Hide file tree
Showing 7 changed files with 659 additions and 2,621 deletions.
6 changes: 2 additions & 4 deletions fastpay/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,7 @@ fn find_cached_owner_by_object_id(
.map(|acc| acc.address)
}

fn show_object_effects(order_info_resp: OrderInfoResponse) {
let order_effects = order_info_resp.signed_effects.unwrap().effects;

fn show_object_effects(order_effects: OrderEffects) {
if order_effects.status != ExecutionStatus::Success {
error!("Error publishing module: {:#?}", order_effects.status);
}
Expand Down Expand Up @@ -698,7 +696,7 @@ fn main() {
recv_timeout,
)
.await;
recipient_client_state.receive_object(&cert).await.unwrap();
recipient_client_state.sync_client_state().await.unwrap();
accounts_config.update_from_state(&recipient_client_state);
accounts_config
.write(accounts_config_path)
Expand Down
Loading

0 comments on commit e669843

Please sign in to comment.