diff --git a/server/config/config.go b/server/config/config.go index 562ff58a5675..4cc4aef8060f 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -334,7 +334,7 @@ func DefaultConfig() *Config { }, }, Mempool: MempoolConfig{ - MaxTxs: 0, + MaxTxs: 5_000, }, } } diff --git a/server/config/toml.go b/server/config/toml.go index bd8114327d29..1fbcd7b368f6 100644 --- a/server/config/toml.go +++ b/server/config/toml.go @@ -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 }}" `