Remove redundant filter during restoration

This commit is contained in:
stefanbitcr
2025-06-04 11:11:35 +02:00
parent 1f2654d974
commit 97abdd97e7

View File

@@ -419,11 +419,6 @@ impl Wallet {
.filter(|p| response.outputs.contains(&p.blinded_message))
.collect();
let premint_secrets: Vec<_> = premint_secrets
.iter()
.filter(|p| response.outputs.contains(&p.blinded_message))
.collect();
// the response outputs and premint secrets should be the same after filtering
// blinded messages the mint did not have signatures for
assert_eq!(response.outputs.len(), premint_secrets.len());