From e6ec914baed82633b34f9826e90f8d42276d9223 Mon Sep 17 00:00:00 2001 From: Lech <88630083+Artemka374@users.noreply.github.com> Date: Wed, 28 Aug 2024 15:12:42 +0300 Subject: [PATCH] fix --- .../external_proof_integration_api/src/processor.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/core/node/external_proof_integration_api/src/processor.rs b/core/node/external_proof_integration_api/src/processor.rs index 4b71fe937088..277c2e694de8 100644 --- a/core/node/external_proof_integration_api/src/processor.rs +++ b/core/node/external_proof_integration_api/src/processor.rs @@ -113,8 +113,7 @@ impl Processor { &self .blob_store .get::((l1_batch_number, payload.0.protocol_version)) - .await - .map_err(|_| ProcessorError::ProofWasPurged)?, + .await?, )?; if serialized_proof != expected_proof { @@ -184,13 +183,8 @@ impl Processor { .blob_store .get(l1_batch_number) .await - .map_err(ProcessorError::ObjectStore) - .map_err(ProcessorError::ProofWasPurged)?; - let merkle_paths: WitnessInputMerklePaths = self - .blob_store - .get(l1_batch_number) - .await - .map_err(ProcessorError::ProofWasPurged)?; + .map_err(ProcessorError::ObjectStore)?; + let merkle_paths: WitnessInputMerklePaths = self.blob_store.get(l1_batch_number).await?; // Acquire connection after interacting with GCP, to avoid holding the connection for too long. let mut conn = self.pool.connection().await.map_err(ProcessorError::Dal)?;