File tree 2 files changed +10
-11
lines changed
2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ async fn batch_handler(
43
43
State ( actor) : State < Actor > ,
44
44
Json ( mut batch_request_opt) : Json < Value > ,
45
45
) -> HostResult < Status > {
46
+ tracing:: debug!(
47
+ "Received batch request: {}" ,
48
+ serde_json:: to_string( & batch_request_opt) ?
49
+ ) ;
50
+
46
51
if is_zk_any_request ( & batch_request_opt) {
47
52
fulfill_sp1_params ( & mut batch_request_opt) ;
48
53
}
Original file line number Diff line number Diff line change @@ -118,17 +118,11 @@ pub async fn draw_for_zk_any_batch_request(
118
118
}
119
119
120
120
pub fn fulfill_sp1_params ( req : & mut Value ) {
121
- let zk_any_opts = req[ "zk_any" ] . as_object ( ) . clone ( ) ;
122
- let sp1_recursion = match zk_any_opts {
123
- None => serde_json:: Value :: String ( "plonk" . to_string ( ) ) ,
124
- Some ( zk_any) => {
125
- let aggregation = zk_any[ "aggregation" ] . as_bool ( ) . unwrap_or ( false ) ;
126
- if aggregation {
127
- serde_json:: Value :: String ( "compressed" . to_string ( ) )
128
- } else {
129
- serde_json:: Value :: String ( "plonk" . to_string ( ) )
130
- }
131
- }
121
+ let aggregate = req[ "aggregate" ] . as_bool ( ) . unwrap_or ( false ) ;
122
+ let sp1_recursion = if aggregate {
123
+ serde_json:: Value :: String ( "compressed" . to_string ( ) )
124
+ } else {
125
+ serde_json:: Value :: String ( "plonk" . to_string ( ) )
132
126
} ;
133
127
134
128
let sp1_opts = req[ "sp1" ] . as_object_mut ( ) ;
You can’t perform that action at this time.
0 commit comments