@@ -11,11 +11,11 @@ use crate::aggregators::{
1111} ;
1212
1313use alloy:: {
14- consensus:: { BlobTransactionSidecar } ,
14+ consensus:: BlobTransactionSidecar ,
1515 eips:: eip4844:: BYTES_PER_BLOB ,
1616 hex,
1717 network:: EthereumWallet ,
18- primitives:: { Address } ,
18+ primitives:: Address ,
1919 providers:: { PendingTransactionError , ProviderBuilder } ,
2020 rpc:: types:: TransactionReceipt ,
2121 signers:: local:: LocalSigner ,
@@ -81,11 +81,6 @@ impl ProofAggregator {
8181 }
8282 Err ( err) => {
8383 error ! ( "Error while aggregating and submitting proofs: {:?}" , err) ;
84- info ! ( "About to set aggregated proof as missed" ) ;
85- if let Err ( err) = self . set_aggregated_proof_as_missed ( ) . await {
86- error ! ( "Error while marking proof as failed: {:?}" , err) ;
87- } ;
88- info ! ( "Proofs set as missed" ) ;
8984 }
9085 }
9186 }
@@ -99,7 +94,7 @@ impl ProofAggregator {
9994 . await
10095 . map_err ( AggregatedProofSubmissionError :: FetchingProofs ) ?;
10196
102- if proofs. len ( ) == 0 {
97+ if proofs. is_empty ( ) {
10398 warn ! ( "No proofs collected, skipping aggregation..." ) ;
10499 return Ok ( ( ) ) ;
105100 }
@@ -114,8 +109,8 @@ impl ProofAggregator {
114109 // only SP1 compressed proofs are supported
115110 let proofs = proofs
116111 . into_iter ( )
117- . filter_map ( |proof| match proof {
118- AlignedProof :: SP1 ( proof) => Some ( proof) ,
112+ . map ( |proof| match proof {
113+ AlignedProof :: SP1 ( proof) => proof,
119114 } )
120115 . collect ( ) ;
121116
@@ -219,19 +214,4 @@ impl ProofAggregator {
219214
220215 Ok ( ( blob, blob_versioned_hash) )
221216 }
222-
223- async fn set_aggregated_proof_as_missed (
224- & self ,
225- ) -> Result < TransactionReceipt , AggregatedProofSubmissionError > {
226- let res = self
227- . proof_aggregation_service
228- . markCurrentAggregatedProofAsMissed ( )
229- . send ( )
230- . await
231- . map_err ( AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ) ?;
232-
233- res. get_receipt ( )
234- . await
235- . map_err ( AggregatedProofSubmissionError :: ReceiptError )
236- }
237217}
0 commit comments