Actually cache range and surjection proofs

This commit is contained in:
Gregory Sanders 2018-04-17 20:19:25 -04:00
parent 9f17022c5d
commit 92871c6231

View file

@ -179,6 +179,10 @@ bool CachingRangeProofChecker::VerifyRangeProof(const std::vector<unsigned char>
return false;
}
if (store) {
rangeProofCache.Set(entry);
}
return true;
}
@ -216,5 +220,9 @@ bool CachingSurjectionProofChecker::VerifySurjectionProof(secp256k1_surjectionpr
return false;
}
if (store) {
surjectionProofCache.Set(entry);
}
return true;
}