Skip to content

Commit

Permalink
Delete unnecessary code in Client::transfer_object (MystenLabs#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Feb 19, 2022
1 parent c8c8b28 commit 997143d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion sui_core/src/authority_aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ where
/// At that point (and after) enough authorities are up to date with all objects
/// needed to process the certificate that a submission should succeed. However,
/// in case an authority returns an error, we do try to bring it up to speed.
pub async fn process_certificate(
async fn process_certificate(
&self,
certificate: CertifiedOrder,
timeout_after_quorum: Duration,
Expand Down
8 changes: 0 additions & 8 deletions sui_core/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,6 @@ where
&*self.secret,
);
let (certificate, effects) = self.execute_transaction(order).await?;
self.authorities
.process_certificate(certificate.clone(), Duration::from_secs(60))
.await?;

// remove object from local storage if the recipient is not us.
if recipient != self.address {
self.remove_object_info(&object_id)?;
}

Ok((certificate, effects))
}
Expand Down

0 comments on commit 997143d

Please sign in to comment.