Merge pull request #784 from stefanbitcr/restore_redundant

Remove redundant filter during restoration
This commit is contained in:
thesimplekid
2025-06-04 09:19:34 -04:00
committed by GitHub

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());