diff --git a/crates/cdk/src/wallet/proofs.rs b/crates/cdk/src/wallet/proofs.rs index 3eff5cf8..9d652f17 100644 --- a/crates/cdk/src/wallet/proofs.rs +++ b/crates/cdk/src/wallet/proofs.rs @@ -111,6 +111,16 @@ impl Wallet { .collect::, _>>()?, ) .await?; + let spent_ys: Vec<_> = spendable + .states + .iter() + .filter_map(|p| match p.state { + State::Spent => Some(p.y), + _ => None, + }) + .collect(); + + self.localstore.update_proofs(vec![], spent_ys).await?; Ok(spendable.states) }