feat: default to noop mempool when max-txs is negative (#16071)

This commit is contained in:
Julien Robert
2023-05-09 17:41:20 +00:00
committed by GitHub
parent 2f21cb5050
commit 0da5e83176
3 changed files with 27 additions and 5 deletions
+16
View File
@@ -124,6 +124,22 @@ One example config to tweak is the `minimum-gas-prices` field inside `app.toml`,
minimum-gas-prices = "0stake"
```
:::tip
When running a node (not a validator!) and not wanting to run the application mempool, set the `max-txs` field to `-1`.
```toml
[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.
#
# Note, this configuration only applies to SDK built-in app-side mempool
# implementations.
max-txs = "-1"
```
:::
## Run a Localnet
Now that everything is set up, you can finally start your node: