Skip to content

Commit d7d8362

Browse files
committed
feat: selecting proofs and aggregating working
1 parent 3309e31 commit d7d8362

File tree

4 files changed

+3
-64
lines changed

4 files changed

+3
-64
lines changed

aggregation_mode/batcher/src/server/http.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ impl BatcherServer {
4343
HttpServer::new(move || {
4444
App::new()
4545
.app_data(Data::new(state.clone()))
46+
// Note: this is temporary and should be lowered when we accept proofs via multipart form data instead of json
47+
.app_data(web::JsonConfig::default().limit(50 * 1024 * 1024)) // 50mb
4648
.route("/nonce/{address}", web::get().to(Self::get_nonce))
4749
.route("/proof/merkle", web::get().to(Self::get_proof_merkle_path))
4850
.route("/proof/sp1", web::post().to(Self::post_proof_sp1))

aggregation_mode/db/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct Task {
2020
pub proving_system_id: i32,
2121
pub proof: Vec<u8>,
2222
pub program_commitment: Vec<u8>,
23-
pub merkle_path: Vec<u8>,
23+
pub merkle_path: Option<Vec<u8>>,
2424
pub status: TaskStatus,
2525
}
2626

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ pub mod config;
22
mod db;
33
pub mod fetcher;
44
mod merkle_tree;
5-
mod retry;
65
mod types;
76

87
use crate::{

aggregation_mode/proof_aggregator/src/backend/retry.rs

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)