File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed
Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -821,22 +821,34 @@ async fn main() -> Result<(), AlignedError> {
821821 }
822822 } ;
823823
824- match aggregation_layer:: is_proof_verified (
825- proof_data,
824+ let proof_status = match aggregation_layer:: check_proof_verification (
825+ & proof_data,
826826 args. network . into ( ) ,
827827 args. eth_rpc_url ,
828828 args. beacon_client_url ,
829829 args. from_block ,
830830 )
831831 . await
832832 {
833- Ok ( res) => {
834- info ! (
835- "Your proof has been verified in the aggregated proof with merkle root 0x{}" ,
836- hex:: encode( res)
837- ) ;
833+ Ok ( res) => res,
834+ Err ( e) => {
835+ error ! ( "Error while trying to verify proof {:?}" , e) ;
836+ return Ok ( ( ) ) ;
837+ }
838+ } ;
839+
840+ match proof_status {
841+ aggregation_layer:: ProofStatus :: Verified { merkle_root, .. } => {
842+ info ! ( "Your proof has been verified in the aggregated proof with merkle root 0x{}" , hex:: encode( merkle_root) ) ;
843+ }
844+ aggregation_layer:: ProofStatus :: Invalid => {
845+ error ! (
846+ "Your proof was found in the blob but the Merkle Root verification failed."
847+ )
848+ }
849+ aggregation_layer:: ProofStatus :: NotFound => {
850+ error ! ( "Your proof wasn't found in the logs. Try specifying an earlier `from_block` to search further back in history." )
838851 }
839- Err ( e) => error ! ( "Error while trying to verify proof {:?}" , e) ,
840852 }
841853
842854 return Ok ( ( ) ) ;
You can’t perform that action at this time.
0 commit comments