chore: bound mempool size by default (#14135)

This commit is contained in:
Marko 2022-12-02 15:57:22 +00:00 committed by GitHub
parent 1f91ee2ee9
commit ca0b1deeea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -304,7 +304,7 @@ func DefaultConfig() *Config {
},
},
Mempool: MempoolConfig{
MaxTxs: 0,
MaxTxs: 5_000,
},
}
}

View File

@ -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 }}"
`