Skip Sprout proof verification for ProofVerifier::Disabled

This behaviour was removed for pre-Sapling Sprout proofs in
https://github.com/zcash/zcash/pull/4060, and was never introduced for
hybrid Sprout proofs.
This commit is contained in:
Jack Grigg 2020-07-08 13:57:04 +12:00
parent 042bd12a5c
commit 7fa2bb6005
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ bool ProofVerifier::VerifySprout(
const JSDescription& jsdesc,
const uint256& joinSplitPubKey
) {
if (!perform_verification) {
return true;
}
auto pv = SproutProofVerifier(*this, joinSplitPubKey, jsdesc);
return boost::apply_visitor(pv, jsdesc.proof);
}