revert dbg commits

This commit is contained in:
Rohit Narurkar
2025-03-11 18:34:05 +00:00
parent be88ef6c39
commit fe6451b76c
3 changed files with 3 additions and 14 deletions

View File

@@ -64,23 +64,16 @@ impl ProvingService for LocalProver {
async fn get_vks(&self, req: GetVkRequest) -> GetVkResponse {
let mut vks = vec![];
for hard_fork_name in self.config.circuits.keys() {
println!("\n\n\nhard fork = {:?}", hard_fork_name);
let handler = self.new_handler(hard_fork_name);
println!("request proof-types = {:?}", req.proof_types);
for proof_type in &req.proof_types {
let vk = handler.get_vk(*proof_type).await;
println!("proof type = {:?}, vk = {:?}", proof_type, vk);
if let Some(vk) = vk {
let vk_base64 = base64::encode(vk);
println!("vk (base64) = {:?}", vk_base64);
vks.push(vk_base64);
vks.push(base64::encode(vk));
}
}
}
println!("\n\n\nall vks = {:#?}", vks);
GetVkResponse { vks, error: None }
}
async fn prove(&mut self, req: ProveRequest) -> ProveResponse {
@@ -186,11 +179,9 @@ impl LocalProver {
}
fn new_handler(&self, hard_fork_name: &str) -> Arc<dyn CircuitsHandler> {
println!("in new_handler");
// if we got assigned a task for an unknown hard fork, there is something wrong in the
// coordinator
let config = self.config.circuits.get(hard_fork_name).unwrap();
println!("config workspace path for hard-fork {:?} = {:?}", hard_fork_name, config.workspace_path);
match hard_fork_name {
"euclid" => Arc::new(Arc::new(Mutex::new(EuclidHandler::new(

View File

@@ -1,4 +1,6 @@
pub mod euclid;
#[allow(non_snake_case)]
pub mod euclidV2;
use anyhow::Result;

View File

@@ -20,7 +20,6 @@ unsafe impl Send for EuclidV2Handler {}
impl EuclidV2Handler {
pub fn new(workspace_path: &str) -> Self {
let workspace_path = Path::new(workspace_path);
println!("ok 1");
let cache_dir = workspace_path.join("cache");
let chunk_exe = workspace_path.join("chunk/app.vmexe");
@@ -32,7 +31,6 @@ impl EuclidV2Handler {
Default::default(),
)
.expect("Failed to setup chunk prover");
println!("ok 2");
let batch_exe = workspace_path.join("batch/app.vmexe");
let batch_app_config = workspace_path.join("batch/openvm.toml");
@@ -43,7 +41,6 @@ impl EuclidV2Handler {
Default::default(),
)
.expect("Failed to setup batch prover");
println!("ok 3");
let bundle_exe = workspace_path.join("bundle/app.vmexe");
let bundle_app_config = workspace_path.join("bundle/openvm.toml");
@@ -54,7 +51,6 @@ impl EuclidV2Handler {
Default::default(),
)
.expect("Failed to setup bundle prover");
println!("ok 4");
Self {
chunk_prover,