diff --git a/src/script/sigcache.cpp b/src/script/sigcache.cpp index d7601a196c..4e40d48463 100644 --- a/src/script/sigcache.cpp +++ b/src/script/sigcache.cpp @@ -179,6 +179,10 @@ bool CachingRangeProofChecker::VerifyRangeProof(const std::vector 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; }