Skip to content

Commit

Permalink
chore: bound mempool size by default (cosmos#14135)
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle authored Dec 2, 2022
1 parent 1f91ee2 commit ca0b1de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func DefaultConfig() *Config {
},
},
Mempool: MempoolConfig{
MaxTxs: 0,
MaxTxs: 5_000,
},
}
}
Expand Down
3 changes: 3 additions & 0 deletions server/config/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
`
Expand Down

0 comments on commit ca0b1de

Please sign in to comment.