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:
parent
042bd12a5c
commit
7fa2bb6005
|
@ -61,6 +61,10 @@ bool ProofVerifier::VerifySprout(
|
||||||
const JSDescription& jsdesc,
|
const JSDescription& jsdesc,
|
||||||
const uint256& joinSplitPubKey
|
const uint256& joinSplitPubKey
|
||||||
) {
|
) {
|
||||||
|
if (!perform_verification) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
auto pv = SproutProofVerifier(*this, joinSplitPubKey, jsdesc);
|
auto pv = SproutProofVerifier(*this, joinSplitPubKey, jsdesc);
|
||||||
return boost::apply_visitor(pv, jsdesc.proof);
|
return boost::apply_visitor(pv, jsdesc.proof);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue