From 6845154d88f6d4339aa8a04c8e454b4dac1d554f Mon Sep 17 00:00:00 2001 From: ying tong Date: Thu, 14 May 2020 11:30:13 +0800 Subject: [PATCH] Update zcash_proofs/src/lib.rs Co-authored-by: str4d --- zcash_proofs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zcash_proofs/src/lib.rs b/zcash_proofs/src/lib.rs index 6bbdf2c..03c3efd 100644 --- a/zcash_proofs/src/lib.rs +++ b/zcash_proofs/src/lib.rs @@ -84,7 +84,7 @@ pub fn load_parameters( panic!("Sapling output parameter file is not correct, please clean your `~/.zcash-params/` and re-run `fetch-params`."); } - if sprout_fs.map(|fs| fs.into_hash()) != Some(SPROUT_HASH.to_owned()) { + if sprout_fs.map(|fs| fs.into_hash() != SPROUT_HASH).unwrap_or(false) { panic!("Sprout groth16 parameter file is not correct, please clean your `~/.zcash-params/` and re-run `fetch-params`."); }