Skip to content

Commit

Permalink
Don't do preceding tx check if nonce == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson committed Apr 18, 2024
1 parent 8f73414 commit a0ce791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbnode/dataposter/data_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ func (p *DataPoster) sendTx(ctx context.Context, prevTx *storage.QueuedTransacti
// different type with a lower nonce.
// If we decide not to send this tx yet, just leave it queued and with Sent set to false.
// The resending/repricing loop in DataPoster.Start will keep trying.
if !newTx.Sent {
if !newTx.Sent && newTx.FullTx.Nonce() > 0 {
precedingTx, err := p.queue.Get(ctx, arbmath.SaturatingUSub(newTx.FullTx.Nonce(), 1))
if err != nil {
return fmt.Errorf("couldn't get preceding tx in DataPoster to check if should send tx with nonce %d: %w", newTx.FullTx.Nonce(), err)
Expand Down

0 comments on commit a0ce791

Please sign in to comment.