|
55 | 55 | celestiaSuccessCounter = metrics.NewRegisteredCounter("celestia/action/celestia_success", nil)
|
56 | 56 | celestiaFailureCounter = metrics.NewRegisteredCounter("celestia/action/celestia_failure", nil)
|
57 | 57 | celestiaGasRetries = metrics.NewRegisteredCounter("celestia/action/gas_retries", nil)
|
58 |
| - celestiaBlobInclusionRetries = metrics.NewRegisteredCounter("celestia/action/inclusion_retries", nil) |
59 | 58 |
|
60 | 59 | celestiaValidationLastSuccesfulActionGauge = metrics.NewRegisteredGauge("celestia/validation/last_success", nil)
|
61 | 60 | celestiaValidationSuccessCounter = metrics.NewRegisteredCounter("celestia/validation/blobstream_success", nil)
|
@@ -241,33 +240,6 @@ func (c *CelestiaDA) Store(ctx context.Context, message []byte) ([]byte, error)
|
241 | 240 | celestiaLastNonDefaultGasprice.Update(gasPrice)
|
242 | 241 | }
|
243 | 242 |
|
244 |
| - proofs, err := c.ReadClient.Blob.GetProof(ctx, height, *c.Namespace, dataBlob.Commitment) |
245 |
| - if err != nil { |
246 |
| - celestiaFailureCounter.Inc(1) |
247 |
| - log.Warn("Error retrieving proof", "err", err) |
248 |
| - return nil, err |
249 |
| - } |
250 |
| - |
251 |
| - proofRetries := 0 |
252 |
| - for proofs == nil { |
253 |
| - log.Warn("Retrieved empty proof from GetProof, fetching again...", "proofRetries", proofRetries) |
254 |
| - time.Sleep(time.Millisecond * 100) |
255 |
| - proofs, err = c.ReadClient.Blob.GetProof(ctx, height, *c.Namespace, dataBlob.Commitment) |
256 |
| - if err != nil { |
257 |
| - celestiaFailureCounter.Inc(1) |
258 |
| - log.Warn("Error retrieving proof", "err", err) |
259 |
| - return nil, err |
260 |
| - } |
261 |
| - proofRetries++ |
262 |
| - celestiaBlobInclusionRetries.Inc(1) |
263 |
| - } |
264 |
| - |
265 |
| - included, err := c.ReadClient.Blob.Included(ctx, height, *c.Namespace, proofs, dataBlob.Commitment) |
266 |
| - if err != nil || !included { |
267 |
| - celestiaFailureCounter.Inc(1) |
268 |
| - log.Warn("Error checking for inclusion", "err", err, "proof", proofs) |
269 |
| - return nil, err |
270 |
| - } |
271 | 243 | log.Info("Succesfully posted blob", "height", height, "commitment", hex.EncodeToString(dataBlob.Commitment))
|
272 | 244 |
|
273 | 245 | // we fetch the blob so that we can get the correct start index in the square
|
@@ -363,13 +335,6 @@ func (c *CelestiaDA) Store(ctx context.Context, message []byte) ([]byte, error)
|
363 | 335 | }
|
364 | 336 |
|
365 | 337 | func (c *CelestiaDA) Read(ctx context.Context, blobPointer *BlobPointer) (*ReadResult, error) {
|
366 |
| - // Wait until our client is synced |
367 |
| - err := c.ReadClient.Header.SyncWait(ctx) |
368 |
| - if err != nil { |
369 |
| - log.Error("trouble with client sync", "err", err) |
370 |
| - return nil, err |
371 |
| - } |
372 |
| - |
373 | 338 | header, err := c.ReadClient.Header.GetByHeight(ctx, blobPointer.BlockHeight)
|
374 | 339 | if err != nil {
|
375 | 340 | log.Error("could not fetch header", "err", err)
|
|
0 commit comments