浏览代码

Minor changes

Cesar Rodas 2 周之前
父节点
当前提交
be9394eff7
共有 1 个文件被更改,包括 0 次插入14 次删除
  1. 0 14
      crates/cdk/src/wallet/reclaim.rs

+ 0 - 14
crates/cdk/src/wallet/reclaim.rs

@@ -40,8 +40,6 @@ impl Wallet {
     pub async fn sync_proofs_state(&self, proofs: Proofs) -> Result<(), Error> {
         let proof_ys = proofs.ys()?;
 
-        let transaction_id = TransactionId::new(proof_ys.clone());
-
         let statuses = self
             .client
             .post_check_state(CheckStateRequest { ys: proof_ys })
@@ -68,13 +66,6 @@ impl Wallet {
                 .await?;
         }
 
-        match self.localstore.remove_transaction(transaction_id).await {
-            Ok(_) => (),
-            Err(e) => {
-                tracing::warn!("Failed to remove transaction: {:?}", e);
-            }
-        }
-
         Ok(())
     }
 
@@ -94,11 +85,6 @@ impl Wallet {
             match f.await {
                 Ok(r) => Ok(r),
                 Err(err) => {
-                    println!(
-                        "Http operation failed with \"{}\", revering  {} proofs states to UNSPENT",
-                        err,
-                        inputs.len()
-                    );
                     tracing::error!(
                         "Http operation failed with \"{}\", revering  {} proofs states to UNSPENT",
                         err,