From cc230cf187d139b9952ccd00a586345d93e1a06e Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Wed, 10 Jan 2024 09:26:24 -0800 Subject: [PATCH] fix: local prover (#321) --- Cargo.lock | 6 +++--- client/src/request.rs | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5cf889e3..7ec39b02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4070,15 +4070,15 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tempfile" -version = "3.9.0" +version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa" +checksum = "7ef1adac450ad7f4b3c28589471ade84f25f731a7a0fe30d71dfa9f60fd808e5" dependencies = [ "cfg-if", "fastrand", "redox_syscall", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.48.0", ] [[package]] diff --git a/client/src/request.rs b/client/src/request.rs index 41f2bb82..41a62512 100644 --- a/client/src/request.rs +++ b/client/src/request.rs @@ -71,6 +71,7 @@ impl SuccinctClient { } pub fn run_local_prover_docker_image( + wrapper_binary: &str, prove_binary_dir: &str, prove_file_name: &str, input_file: &str, @@ -81,7 +82,7 @@ impl SuccinctClient { let mount_proofs_dir = format!("{}/proofs:/proofs", current_dir_str); let mount_prove_binary_dir = format!("{}/{}:/build", current_dir_str, prove_binary_dir); let mount_verifier_build_dir = - format!("{}/verifier-build:/verifier-build", current_dir_str); + format!("{}/{}:/verifier-build", current_dir_str, wrapper_binary); let mount_env_file = format!("{}/.env:/.env", current_dir_str); let prove = Command::new("docker") @@ -170,6 +171,7 @@ impl SuccinctClient { // Run the docker image Self::run_local_prover_docker_image( + &wrapper_binary, prove_binary_dir.to_str().unwrap(), prove_file_name.to_str().unwrap(), &input_file,