Skip to content

Commit

Permalink
Remove also duplication of proofs form container
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jun 17, 2021
1 parent c57efe9 commit 27bc584
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/batchproof_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ void BatchProofContainer::removeSigma(const sigma::spend_info_container& spendSe
if (dataItr->coinSerialNumber == spendSerial.first) {
vProofs.erase(dataItr);
foundAtSigma = true;
break;
}
}
}
Expand All @@ -99,7 +98,6 @@ void BatchProofContainer::removeSigma(const sigma::spend_info_container& spendSe
for (auto dataItr = vProofs->begin(); dataItr != vProofs->end(); dataItr++) {
if (dataItr->serialNumber == spendSerial.first) {
vProofs->erase(dataItr);
break;
}
}
}
Expand All @@ -121,7 +119,6 @@ void BatchProofContainer::removeLelantus(std::unordered_map<Scalar, int> spentSe
for (auto dataItr = vProofs->begin(); dataItr != vProofs->end(); dataItr++) {
if (dataItr->serialNumber == spendSerial.first) {
vProofs->erase(dataItr);
break;
}
}
}
Expand Down

0 comments on commit 27bc584

Please sign in to comment.