Skip to content

Commit ca0b1de

Browse files
authored
chore: bound mempool size by default (cosmos#14135)
1 parent 1f91ee2 commit ca0b1de

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

server/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func DefaultConfig() *Config {
304304
},
305305
},
306306
Mempool: MempoolConfig{
307-
MaxTxs: 0,
307+
MaxTxs: 5_000,
308308
},
309309
}
310310
}

server/config/toml.go

+3
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ fsync = "{{ .Streamers.File.Fsync }}"
225225
###############################################################################
226226
227227
[mempool]
228+
# Setting max-txs to 0 will allow for a unbounded amount of transactions in the mempool.
229+
# Setting max_txs to negative 1 (-1) will disable transactions from being inserted into the mempool.
230+
# Setting max_txs to a positive number (> 0) will limit the number of transactions in the mempool, by the specified amount.
228231
max-txs = "{{ .Mempool.MaxTxs }}"
229232
230233
`

0 commit comments

Comments
 (0)