Skip to content

Commit

Permalink
Skip Sprout proof verification for ProofVerifier::Disabled
Browse files Browse the repository at this point in the history
This behaviour was removed for pre-Sapling Sprout proofs in
zcash/zcash#4060, and was never introduced for
hybrid Sprout proofs.
  • Loading branch information
str4d committed Jul 8, 2020
1 parent 042bd12 commit 7fa2bb6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/proof_verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 7fa2bb6

Please sign in to comment.