File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed
Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -872,45 +872,6 @@ impl Batcher {
872872 return Ok ( ( ) ) ;
873873 } ;
874874
875- // When pre-verification is enabled, batcher will verify proofs for faster feedback with clients
876- if self . pre_verification_is_enabled {
877- let verification_data = & nonced_verification_data. verification_data ;
878- if self
879- . is_verifier_disabled ( verification_data. proving_system )
880- . await
881- {
882- warn ! (
883- "Verifier for proving system {} is disabled, skipping verification" ,
884- verification_data. proving_system
885- ) ;
886- send_message (
887- ws_conn_sink. clone ( ) ,
888- SubmitProofResponseMessage :: InvalidProof ( ProofInvalidReason :: DisabledVerifier (
889- verification_data. proving_system ,
890- ) ) ,
891- )
892- . await ;
893- self . metrics . user_error ( & [
894- "disabled_verifier" ,
895- & format ! ( "{}" , verification_data. proving_system) ,
896- ] ) ;
897- return Ok ( ( ) ) ;
898- }
899-
900- if !zk_utils:: verify ( verification_data) . await {
901- error ! ( "Invalid proof detected. Verification failed" ) ;
902- send_message (
903- ws_conn_sink. clone ( ) ,
904- SubmitProofResponseMessage :: InvalidProof ( ProofInvalidReason :: RejectedProof ) ,
905- )
906- . await ;
907- self . metrics . user_error ( & [
908- "rejected_proof" ,
909- & format ! ( "{}" , verification_data. proving_system) ,
910- ] ) ;
911- return Ok ( ( ) ) ;
912- }
913- }
914875
915876 // We don't need a batch state lock here, since if the user locks its funds
916877 // after the check, some blocks should pass until he can withdraw.
You can’t perform that action at this time.
0 commit comments