Skip to content

Commit

Permalink
batcher: wait catchup before submit (#205)
Browse files Browse the repository at this point in the history
* op-batcher: wait catchup before blob submit

* op-batcher: use header.syncwait instead of das.waitcatchup
  • Loading branch information
tuxcanfly authored Aug 14, 2023
1 parent 4ebcd32 commit 6825902
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op-service/txmgr/txmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ func (m *SimpleTxManager) send(ctx context.Context, candidate TxCandidate) (*typ
m.l.Warn("unable to create blob commitment to celestia", "err", err)
return nil, err
}
err = m.daClient.Header.SyncWait(ctx)
if err != nil {
m.l.Warn("unable to wait for celestia header sync", "err", err)
return nil, err
}
height, err := m.daClient.Blob.Submit(ctx, []*blob.Blob{dataBlob})
if err != nil {
m.l.Warn("unable to publish tx to celestia", "err", err)
Expand Down

0 comments on commit 6825902

Please sign in to comment.