We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OPENMINA_CIRCUIT_BLOBS_BASE_DIR
1 parent 0671b5e commit 412adcdCopy full SHA for 412adcd
ledger/src/proofs/gates.rs
@@ -88,7 +88,14 @@ fn read_gates() -> Gates {
88
Vec<CircuitGate<F>>,
89
) {
90
let circuits_config = openmina_core::NetworkConfig::global().circuits_config;
91
- let base_dir = Path::new(env!("CARGO_MANIFEST_DIR"));
+ let base_dir = std::env::var("OPENMINA_CIRCUIT_BLOBS_BASE_DIR")
92
+ .unwrap_or_else(|_| env!("CARGO_MANIFEST_DIR").to_string());
93
+ let base_dir = Path::new(&base_dir);
94
+ let base_dir = if base_dir.exists() {
95
+ base_dir
96
+ } else {
97
+ Path::new("/usr/local/lib/openmina/circuit-blobs")
98
+ };
99
let base_dir = base_dir.join(circuits_config.directory_name);
100
101
let internal_vars_path = base_dir.join(format!("{}_internal_vars.bin", filename));
0 commit comments