github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/docs/tendermint-core/mempool/config.md (about) 1 --- 2 order: 2 3 --- 4 5 # Configuration 6 7 Here we describe configuration options around mempool. 8 For the purposes of this document, they are described 9 in a toml file, but some of them can also be passed in as 10 environmental variables. 11 12 Config: 13 14 ```toml 15 [mempool] 16 17 # Set true to broadcast transactions in the mempool to other nodes 18 broadcast = true 19 20 # Maximum number of transactions in the mempool 21 size = 5000 22 23 # Limit the total size of all txs in the mempool. 24 # This only accounts for raw transactions (e.g. given 1MB transactions and 25 # max-txs-bytes=5MB, mempool will only accept 5 transactions). 26 max-txs-bytes = 1073741824 27 28 # Size of the cache (used to filter transactions we saw earlier) in transactions 29 cache-size = 10000 30 31 # Do not remove invalid transactions from the cache (default: false) 32 # Set to true if it's not possible for any invalid transaction to become valid 33 # again in the future. 34 keep-invalid-txs-in-cache = false 35 36 # Maximum size of a single transaction. 37 # NOTE: the max size of a tx transmitted over the network is {max-tx-bytes}. 38 max-tx-bytes = 1048576 39 40 # Maximum size of a batch of transactions to send to a peer 41 # Including space needed by encoding (one varint per transaction). 42 # XXX: Unused due to https://github.com/tendermint/tendermint/issues/5796 43 max-batch-bytes = 0 44 ``` 45 46 ## Broadcast 47 48 Determines whether this node gossips any valid transactions 49 that arrive in mempool. Default is to gossip anything that 50 passes checktx. If this is disabled, transactions are not 51 gossiped, but instead stored locally and added to the next 52 block this node is the proposer. 53 54 ## WalDir 55 56 This defines the directory where mempool writes the write-ahead 57 logs. These files can be used to reload unbroadcasted 58 transactions if the node crashes. 59 60 If the directory passed in is an absolute path, the wal file is 61 created there. If the directory is a relative path, the path is 62 appended to home directory of the tendermint process to 63 generate an absolute path to the wal directory 64 (default `$HOME/.tendermint` or set via `TM_HOME` or `--home`) 65 66 ## Size 67 68 Size defines the total amount of transactions stored in the mempool. Default is `5_000` but can be adjusted to any number you would like. The higher the size the more strain on the node. 69 70 ## Max Transactions Bytes 71 72 Max transactions bytes defines the total size of all the transactions in the mempool. Default is 1 GB. 73 74 ## Cache size 75 76 Cache size determines the size of the cache holding transactions we have already seen. The cache exists to avoid running `checktx` each time we receive a transaction. 77 78 ## Keep Invalid Transactions In Cache 79 80 Keep invalid transactions in cache determines wether a transaction in the cache, which is invalid, should be evicted. An invalid transaction here may mean that the transaction may rely on a different tx that has not been included in a block. 81 82 ## Max Transaction Bytes 83 84 Max transaction bytes defines the max size a transaction can be for your node. If you would like your node to only keep track of smaller transactions this field would need to be changed. Default is 1MB. 85 86 ## Max Batch Bytes 87 88 Max batch bytes defines the amount of bytes the node will send to a peer. Default is 0. 89 90 > Note: Unused due to https://github.com/tendermint/tendermint/issues/5796