chore: bound mempool size by default (#14135)
This commit is contained in:
parent
1f91ee2ee9
commit
ca0b1deeea
@ -304,7 +304,7 @@ func DefaultConfig() *Config {
|
||||
},
|
||||
},
|
||||
Mempool: MempoolConfig{
|
||||
MaxTxs: 0,
|
||||
MaxTxs: 5_000,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -225,6 +225,9 @@ fsync = "{{ .Streamers.File.Fsync }}"
|
||||
###############################################################################
|
||||
|
||||
[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 }}"
|
||||
|
||||
`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user