Skip to content

Commit

Permalink
chore: bound mempool size by default (#14135) (#14140)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 2, 2022
1 parent 3a51a15 commit 7888f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func DefaultConfig() *Config {
},
},
Mempool: MempoolConfig{
MaxTxs: 0,
MaxTxs: 5_000,
},
}
}
Expand Down
3 changes: 3 additions & 0 deletions server/config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ prefix = "{{ .Streamers.File.Prefix }}"
###############################################################################
[mempool]
# Setting max-txs to 0 will allow for a unbounded amount of transactions in the mempool.
# Setting max_txs to negative 1 (-1) will disable transactions from being inserted into the mempool.
# Setting max_txs to a positive number (> 0) will limit the number of transactions in the mempool, by the specified amount.
max-txs = "{{ .Mempool.MaxTxs }}"
`
Expand Down

0 comments on commit 7888f0a

Please sign in to comment.