Skip to content

Commit

Permalink
Merge branch 'master' into cgroupsv2-resourcemanager
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson authored Aug 10, 2023
2 parents 89acabd + 2747327 commit a007e25
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 @@ -147,7 +147,7 @@ func (p *DataPoster) canPostWithNonce(ctx context.Context, nextNonce uint64) err
if err != nil {
return fmt.Errorf("getting nonce of a dataposter sender: %w", err)
}
if nextNonce-unconfirmedNonce > cfg.MaxMempoolTransactions {
if nextNonce >= cfg.MaxMempoolTransactions+unconfirmedNonce {
return fmt.Errorf("posting a transaction with nonce: %d will exceed max mempool size: %d, unconfirmed nonce: %d", nextNonce, cfg.MaxMempoolTransactions, unconfirmedNonce)
}
}
Expand Down

0 comments on commit a007e25

Please sign in to comment.