@@ -239,6 +239,11 @@ impl Batcher {
239239 serde_json:: from_str ( message. to_text ( ) . expect ( "Message is not text" ) )
240240 . expect ( "Failed to deserialize task" ) ;
241241
242+ info ! (
243+ "Received message with nonce: {}" ,
244+ U256 :: from_big_endian( client_msg. verification_data. nonce. as_slice( ) )
245+ ) ;
246+
242247 info ! ( "Verifying message signature..." ) ;
243248 if let Ok ( addr) = client_msg. verify_signature ( ) {
244249 info ! ( "Message signature verified" ) ;
@@ -270,7 +275,7 @@ impl Batcher {
270275
271276 // When pre-verification is enabled, batcher will verify proofs for faster feedback with clients
272277 if self . pre_verification_is_enabled
273- && !zk_utils:: verify ( & nonced_verification_data. verification_data )
278+ && !zk_utils:: verify ( & nonced_verification_data. verification_data ) . await
274279 {
275280 error ! ( "Invalid proof detected. Verification failed." ) ;
276281 send_message ( ws_conn_sink. clone ( ) , ValidityResponseMessage :: InvalidProof ) . await ;
@@ -703,7 +708,7 @@ impl Batcher {
703708 if client_msg. verification_data . verification_data . proof . len ( ) <= self . max_proof_size {
704709 // When pre-verification is enabled, batcher will verify proofs for faster feedback with clients
705710 if self . pre_verification_is_enabled
706- && !zk_utils:: verify ( & client_msg. verification_data . verification_data )
711+ && !zk_utils:: verify ( & client_msg. verification_data . verification_data ) . await
707712 {
708713 error ! ( "Invalid proof detected. Verification failed." ) ;
709714 send_message ( ws_conn_sink. clone ( ) , ValidityResponseMessage :: InvalidProof ) . await ;
0 commit comments