Skip to content

Commit

Permalink
feat(da): remove availability checks from retriever (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
srene authored and omritoptix committed May 18, 2024
1 parent 56c0bbd commit 037ab29
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions block/retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 037ab29

Please sign in to comment.