@@ -46,26 +46,26 @@ pub extern "C" fn verify_mina_state_ffi(
4646 pub_input_len : usize ,
4747) -> bool {
4848 let Some ( proof_buffer_slice) = proof_buffer. get ( ..proof_len) else {
49- eprintln ! ( "Proof length argument is greater than max proof size" ) ;
49+ error ! ( "Proof length argument is greater than max proof size" ) ;
5050 return false ;
5151 } ;
5252
5353 let Some ( pub_input_buffer_slice) = pub_input_buffer. get ( ..pub_input_len) else {
54- eprintln ! ( "Public input length argument is greater than max public input size" ) ;
54+ error ! ( "Public input length argument is greater than max public input size" ) ;
5555 return false ;
5656 } ;
5757
5858 let proof: MinaStateProof = match bincode:: deserialize ( proof_buffer_slice) {
5959 Ok ( proof) => proof,
6060 Err ( err) => {
61- eprintln ! ( "Failed to deserialize state proof: {}" , err) ;
61+ error ! ( "Failed to deserialize state proof: {}" , err) ;
6262 return false ;
6363 }
6464 } ;
6565 let pub_inputs: MinaStatePubInputs = match bincode:: deserialize ( pub_input_buffer_slice) {
6666 Ok ( pub_inputs) => pub_inputs,
6767 Err ( err) => {
68- eprintln ! ( "Failed to deserialize state pub inputs: {}" , err) ;
68+ error ! ( "Failed to deserialize state pub inputs: {}" , err) ;
6969 return false ;
7070 }
7171 } ;
@@ -75,7 +75,7 @@ pub extern "C" fn verify_mina_state_ffi(
7575 match check_pub_inputs ( & proof, & pub_inputs) {
7676 Ok ( validated_data) => validated_data,
7777 Err ( err) => {
78- eprintln ! ( "Failed to check pub inputs: {err}" ) ;
78+ error ! ( "Failed to check pub inputs: {err}" ) ;
7979 return false ;
8080 }
8181 } ;
@@ -84,12 +84,12 @@ pub extern "C" fn verify_mina_state_ffi(
8484 let secure_chain = match select_secure_chain ( & candidate_tip_state, & bridge_tip_state) {
8585 Ok ( res) => res,
8686 Err ( err) => {
87- eprintln ! ( "Failed consensus checks for candidate tip: {err}" ) ;
87+ error ! ( "Failed consensus checks for candidate tip: {err}" ) ;
8888 return false ;
8989 }
9090 } ;
9191 if secure_chain == ChainResult :: Bridge {
92- eprintln ! ( "Failed consensus checks for candidate tip: bridge's tip is more secure" ) ;
92+ error ! ( "Failed consensus checks for candidate tip: bridge's tip is more secure" ) ;
9393 return false ;
9494 }
9595
0 commit comments