Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions op-batcher/batcher/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,13 @@ func (l *BatchSubmitter) calldataTxCandidate(data []byte) (*txmgr.TxCandidate, e
maybeFrameRef, err := l.submitBlobToNearDA(data)
if err != nil {
l.Log.Warn("unable to submit blob to near da", "err", err)
l.Log.Info("fallback to eth da")
// return nil, err
// eth fallback: try using blobdata otherwise use calldata
if candidate, err := l.blobTxCandidate(singleFrameTxData(frameData{data: data})); err != nil {
l.Log.Info("blob submission failed; falling back to eth calldata", "err", err)
} else {
l.Log.Info("blob submission failed; falling back to eth blobdata", "err", err)
return candidate, nil
}
} else {
l.Log.Info("blob successfully submitted to near da", "id", hex.EncodeToString(maybeFrameRef))
data = append([]byte{opnear.DerivationVersionNear}, maybeFrameRef...)
Expand Down