From aab2158ec10cc81cc5d3ae540c4a9727e74e4e3b Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Thu, 9 May 2024 12:17:07 +0200 Subject: [PATCH] remove availability checks from retriever --- block/retriever.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/block/retriever.go b/block/retriever.go index 61a757204..a144089c0 100644 --- a/block/retriever.go +++ b/block/retriever.go @@ -135,17 +135,7 @@ func (m *Manager) fetchBatch(daMetaData *da.DASubmitMetaData) da.ResultRetrieveB }, } } - // Check batch availability - availabilityRes := m.Retriever.CheckBatchAvailability(daMetaData) - if availabilityRes.Code != da.StatusSuccess { - return da.ResultRetrieveBatch{ - BaseResult: da.BaseResult{ - Code: da.StatusError, - Message: fmt.Sprintf("Error fetching batch: %s", availabilityRes.Message), - Error: availabilityRes.Error, - }, - } - } + // batchRes.MetaData includes proofs necessary to open disputes with the Hub batchRes := m.Retriever.RetrieveBatches(daMetaData) // TODO(srene) : for invalid transactions there is no specific error code since it will need to be validated somewhere else for fraud proving.