You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

  1. # Mempool Configuration
  2. Here we describe configuration options around mempool.
  3. For the purposes of this document, they are described
  4. as command-line flags, but they can also be passed in as
  5. environmental variables or in the config.toml file. The
  6. following are all equivalent:
  7. Flag: `--mempool.recheck_empty=false`
  8. Environment: `TM_MEMPOOL_RECHECK_EMPTY=false`
  9. Config:
  10. ```
  11. [mempool]
  12. recheck_empty = false
  13. ```
  14. ## Recheck
  15. `--mempool.recheck=false` (default: true)
  16. `--mempool.recheck_empty=false` (default: true)
  17. Recheck determines if the mempool rechecks all pending
  18. transactions after a block was committed. Once a block
  19. is committed, the mempool removes all valid transactions
  20. that were successfully included in the block.
  21. If `recheck` is true, then it will rerun CheckTx on
  22. all remaining transactions with the new block state.
  23. If the block contained no transactions, it will skip the
  24. recheck unless `recheck_empty` is true.
  25. ## Broadcast
  26. `--mempool.broadcast=false` (default: true)
  27. Determines whether this node gossips any valid transactions
  28. that arrive in mempool. Default is to gossip anything that
  29. passes checktx. If this is disabled, transactions are not
  30. gossiped, but instead stored locally and added to the next
  31. block this node is the proposer.
  32. ## WalDir
  33. `--mempool.wal_dir=/tmp/gaia/mempool.wal` (default: $TM_HOME/data/mempool.wal)
  34. This defines the directory where mempool writes the write-ahead
  35. logs. These files can be used to reload unbroadcasted
  36. transactions if the node crashes.
  37. If the directory passed in is an absolute path, the wal file is
  38. created there. If the directory is a relative path, the path is
  39. appended to home directory of the tendermint process to
  40. generate an absolute path to the wal directory
  41. (default `$HOME/.tendermint` or set via `TM_HOME` or `--home``)