Skip to content

Commit

Permalink
Update celestia.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferret-san committed Jun 5, 2024
1 parent 4f1f17f commit d8c3eb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion das/celestia/celestia.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ var (

// ErrTxAlreadyInMempool is the error message returned by the DA when tx is already in mempool
ErrTxAlreadyInMempool = errors.New("tx already in mempool")

// ErrTxIncorrectAccountSequence is the error message returned by the DA when tx has incorrect sequence
ErrTxIncorrectAccountSequence = errors.New("incorrect account sequence")
)

// CelestiaMessageHeaderFlag indicates that this data is a Blob Pointer
Expand Down Expand Up @@ -196,7 +199,7 @@ func (c *CelestiaDA) Store(ctx context.Context, message []byte) ([]byte, error)
height, err = c.Client.Blob.Submit(ctx, []*blob.Blob{dataBlob}, gasPrice)
if err != nil {
switch {
case strings.Contains(err.Error(), ErrTxTimedout.Error()), strings.Contains(err.Error(), ErrTxAlreadyInMempool.Error()):
case strings.Contains(err.Error(), ErrTxTimedout.Error()), strings.Contains(err.Error(), ErrTxAlreadyInMempool.Error()), strings.Contains(err.Error(), err.Error(), ErrTxIncorrectAccountSequence.Error()):
log.Warn("Failed to submit blob, bumping gas price and retrying...", "err", err)
if gasPrice == -1.0 {
gasPrice = c.Cfg.GasPrice
Expand Down

0 comments on commit d8c3eb7

Please sign in to comment.