mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
cashu-sdk/mint fix: check_spendable pending proofs check was inverted
This commit is contained in:
@@ -226,7 +226,7 @@ impl Mint {
|
||||
|
||||
for proof in &check_spendable.proofs {
|
||||
spendable.push(!self.spent_secrets.contains(&proof.secret));
|
||||
pending.push(!self.pending_secrets.contains(&proof.secret));
|
||||
pending.push(self.pending_secrets.contains(&proof.secret));
|
||||
}
|
||||
|
||||
Ok(CheckSpendableResponse { spendable, pending })
|
||||
|
||||
Reference in New Issue
Block a user