Skip to content

Commit

Permalink
max mempool txs
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Mar 11, 2024
1 parent 5d07318 commit af9a102
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions arbnode/dataposter/data_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,12 @@ func (p *DataPoster) Sender() common.Address {
}

func (p *DataPoster) MaxMempoolTransactions() uint64 {
if p.usingNoOpStorage {
return 1
}
config := p.config()
return arbmath.MinInt(config.MaxMempoolTransactions, config.MaxMempoolWeight)
// if p.usingNoOpStorage {
// return 1
// }
// config := p.config()
// return arbmath.MinInt(config.MaxMempoolTransactions, config.MaxMempoolWeight)
return 1000
}

var ErrExceedsMaxMempoolSize = errors.New("posting this transaction will exceed max mempool size")
Expand Down Expand Up @@ -1213,7 +1214,7 @@ var DefaultDataPosterConfig = DataPosterConfig{
WaitForL1Finality: true,
TargetPriceGwei: 60.,
UrgencyGwei: 2.,
MaxMempoolTransactions: 18,
MaxMempoolTransactions: 1000,
MaxMempoolWeight: 18,
MinTipCapGwei: 0.05,
MinBlobTxTipCapGwei: 1, // default geth minimum, and relays aren't likely to accept lower values given propagation time
Expand All @@ -1234,7 +1235,7 @@ var DefaultDataPosterConfig = DataPosterConfig{
var DefaultDataPosterConfigForValidator = func() DataPosterConfig {
config := DefaultDataPosterConfig
// the validator cannot queue transactions
config.MaxMempoolTransactions = 1
config.MaxMempoolTransactions = 1000
config.MaxMempoolWeight = 1
return config
}()
Expand All @@ -1246,7 +1247,7 @@ var TestDataPosterConfig = DataPosterConfig{
WaitForL1Finality: false,
TargetPriceGwei: 60.,
UrgencyGwei: 2.,
MaxMempoolTransactions: 18,
MaxMempoolTransactions: 1000,
MaxMempoolWeight: 18,
MinTipCapGwei: 0.05,
MinBlobTxTipCapGwei: 1,
Expand Down

0 comments on commit af9a102

Please sign in to comment.