From 7fa2bb6005b5b408fc46a0242ba2cd686210148c Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 8 Jul 2020 13:57:04 +1200 Subject: [PATCH] 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. --- src/proof_verifier.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/proof_verifier.cpp b/src/proof_verifier.cpp index 055236a60..b5a3e3fdf 100644 --- a/src/proof_verifier.cpp +++ b/src/proof_verifier.cpp @@ -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); }