2018-01-04 17:06:49 +01:00
|
|
|
# Mempool Configuration
|
|
|
|
|
|
|
|
Here we describe configuration options around mempool.
|
|
|
|
For the purposes of this document, they are described
|
|
|
|
as command-line flags, but they can also be passed in as
|
|
|
|
environmental variables or in the config.toml file. The
|
|
|
|
following are all equivalent:
|
|
|
|
|
2018-09-30 13:28:34 -04:00
|
|
|
Flag: `--mempool.recheck=false`
|
2018-01-04 17:06:49 +01:00
|
|
|
|
2018-09-30 13:28:34 -04:00
|
|
|
Environment: `TM_MEMPOOL_RECHECK=false`
|
2018-01-04 17:06:49 +01:00
|
|
|
|
|
|
|
Config:
|
2018-08-27 15:33:46 +08:00
|
|
|
|
2018-01-04 17:06:49 +01:00
|
|
|
```
|
|
|
|
[mempool]
|
2018-09-30 13:28:34 -04:00
|
|
|
recheck = false
|
2018-01-04 17:06:49 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Recheck
|
|
|
|
|
|
|
|
`--mempool.recheck=false` (default: true)
|
|
|
|
|
|
|
|
Recheck determines if the mempool rechecks all pending
|
|
|
|
transactions after a block was committed. Once a block
|
|
|
|
is committed, the mempool removes all valid transactions
|
|
|
|
that were successfully included in the block.
|
|
|
|
|
|
|
|
If `recheck` is true, then it will rerun CheckTx on
|
|
|
|
all remaining transactions with the new block state.
|
|
|
|
|
|
|
|
## Broadcast
|
|
|
|
|
|
|
|
`--mempool.broadcast=false` (default: true)
|
|
|
|
|
|
|
|
Determines whether this node gossips any valid transactions
|
|
|
|
that arrive in mempool. Default is to gossip anything that
|
|
|
|
passes checktx. If this is disabled, transactions are not
|
|
|
|
gossiped, but instead stored locally and added to the next
|
|
|
|
block this node is the proposer.
|
|
|
|
|
|
|
|
## WalDir
|
|
|
|
|
|
|
|
`--mempool.wal_dir=/tmp/gaia/mempool.wal` (default: $TM_HOME/data/mempool.wal)
|
|
|
|
|
|
|
|
This defines the directory where mempool writes the write-ahead
|
|
|
|
logs. These files can be used to reload unbroadcasted
|
|
|
|
transactions if the node crashes.
|
|
|
|
|
|
|
|
If the directory passed in is an absolute path, the wal file is
|
|
|
|
created there. If the directory is a relative path, the path is
|
|
|
|
appended to home directory of the tendermint process to
|
|
|
|
generate an absolute path to the wal directory
|
|
|
|
(default `$HOME/.tendermint` or set via `TM_HOME` or `--home``)
|