@@ -23,7 +23,7 @@ impl Dumper {
2323 // stream-encode serialized_witness to input_task.bin using bincode 2.0
2424 let input_file = std:: fs:: File :: create ( "input_task.bin" ) ?;
2525 let mut input_writer = std:: io:: BufWriter :: new ( input_file) ;
26- bincode:: serde :: encode_into_std_write (
26+ bincode:: encode_into_std_write (
2727 & task. serialized_witness ,
2828 & mut input_writer,
2929 bincode:: config:: standard ( ) ,
@@ -32,11 +32,13 @@ impl Dumper {
3232 // stream-encode aggregated_proofs to agg_proofs.bin using bincode 2.0
3333 let agg_file = std:: fs:: File :: create ( "agg_proofs.bin" ) ?;
3434 let mut agg_writer = std:: io:: BufWriter :: new ( agg_file) ;
35- bincode:: serde:: encode_into_std_write (
36- & task. aggregated_proofs ,
37- & mut agg_writer,
38- bincode:: config:: standard ( ) ,
39- ) ?;
35+ for proof in & task. aggregated_proofs {
36+ bincode:: serde:: encode_into_std_write (
37+ & proof. proofs ,
38+ & mut agg_writer,
39+ bincode:: config:: standard ( ) ,
40+ ) ?;
41+ }
4042
4143 Ok ( ( ) )
4244 }
@@ -71,7 +73,8 @@ impl ProvingService for Dumper {
7173 async fn query_task ( & mut self , req : QueryTaskRequest ) -> QueryTaskResponse {
7274 QueryTaskResponse {
7375 task_id : req. task_id ,
74- status : TaskStatus :: Queued ,
76+ status : TaskStatus :: Failed ,
77+ error : Some ( "dump file finished but need a fail return to exit" . to_string ( ) ) ,
7578 ..Default :: default ( )
7679 }
7780 }
0 commit comments