Update zcash_proofs/src/lib.rs

Co-authored-by: str4d <thestr4d@gmail.com>
This commit is contained in:
ying tong 2020-05-14 11:30:13 +08:00 committed by GitHub
parent d480a3840a
commit 6845154d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.");
}