mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-11 16:16:14 +01:00
cashu-sdk/mint fix: process_split_request add secrets to spent after they are verified
This commit is contained in:
@@ -148,14 +148,14 @@ impl Mint {
|
||||
return Err(Error::DuplicateProofs);
|
||||
}
|
||||
|
||||
for secret in secrets {
|
||||
self.spent_secrets.insert(secret);
|
||||
}
|
||||
|
||||
for proof in &split_request.proofs {
|
||||
self.verify_proof(proof)?
|
||||
}
|
||||
|
||||
for secret in secrets {
|
||||
self.spent_secrets.insert(secret);
|
||||
}
|
||||
|
||||
match &split_request.amount {
|
||||
None => {
|
||||
let promises: Vec<BlindedSignature> = split_request
|
||||
|
||||
Reference in New Issue
Block a user