From 7f86aecefd548894cf5141600de61949c48c59c3 Mon Sep 17 00:00:00 2001 From: Zhang Zhuo Date: Tue, 27 Aug 2024 10:52:18 +0800 Subject: [PATCH] prover: fix loading of degrees (#1503) Co-authored-by: georgehao --- common/libzkp/impl/src/verifier.rs | 11 +++++++---- common/version/version.go | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/common/libzkp/impl/src/verifier.rs b/common/libzkp/impl/src/verifier.rs index 7cdc7384f..c56cc9b1e 100644 --- a/common/libzkp/impl/src/verifier.rs +++ b/common/libzkp/impl/src/verifier.rs @@ -44,12 +44,15 @@ static mut PARAMS_MAP: OnceCell>> = OnceCell::new pub fn init(config: VerifierConfig) { let low_conf = config.low_version_circuit; - // params should be shared between low and high - let mut params_map = BTreeMap::new(); - for degree in [ + std::env::set_var("SCROLL_PROVER_ASSETS_DIR", &low_conf.assets_path); + let params_degrees = [ *prover_v4::config::LAYER2_DEGREE, *prover_v4::config::LAYER4_DEGREE, - ] { + ]; + + // params should be shared between low and high + let mut params_map = BTreeMap::new(); + for degree in params_degrees { if let std::collections::btree_map::Entry::Vacant(e) = params_map.entry(degree) { match load_params(&low_conf.params_path, degree, None) { Ok(params) => { diff --git a/common/version/version.go b/common/version/version.go index 645feee7a..53c479ec7 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.4.50" +var tag = "v4.4.51" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok {