Skip to content

Commit

Permalink
Bump default value of txpool global slots
Browse files Browse the repository at this point in the history
Increase the default value in order to reduce the time spent in txpool reorg.
When txpool is saturated, txpool reorg can take more than a few seconds to run. This impacts block producer because the producer would need to get the pending txns from txpool, which is blocked by reorg.
  • Loading branch information
cffls committed Jan 10, 2025
1 parent c0da93f commit 6555524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -658,9 +658,9 @@ func DefaultConfig() *Config {
PriceLimit: params.BorDefaultTxPoolPriceLimit, // bor's default
PriceBump: 10,
AccountSlots: 16,
GlobalSlots: 32768,
AccountQueue: 16,
GlobalQueue: 32768,
GlobalSlots: 131072,
AccountQueue: 64,
GlobalQueue: 131072,
LifeTime: 3 * time.Hour,
},
Sealer: &SealerConfig{
Expand Down

0 comments on commit 6555524

Please sign in to comment.