Skip to content

Commit 0fc4f69

Browse files
committed
feat(operator): disable cache
1 parent 47139ef commit 0fc4f69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

operator/sp1/lib/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ use log::{error, warn};
33
use sp1_sdk::{ProverClient, EnvProver, SP1ProofWithPublicValues};
44

55
lazy_static! {
6-
static ref PROVER_CLIENT: EnvProver = ProverClient::from_env();
6+
static ref PROVER_CLIENT: EnvProver = unsafe{
7+
std::env::set_var("SP1_DISABLE_PROGRAM_CACHE", "1");
8+
std::env::set_var("PROVER_CORE_CACHE_SIZE", "1");
9+
ProverClient::from_env()
10+
};
711
}
812

913
fn inner_verify_sp1_proof_ffi(

0 commit comments

Comments
 (0)