Skip to content

Commit

Permalink
using default if FlagMempoolMaxTxs not set (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Khanh Hoa <[email protected]>
  • Loading branch information
TropicalDog17 and hoank101 authored Dec 21, 2024
1 parent 1e56398 commit f896c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func NewTerraApp(
// option for mempool
baseAppOptions = append(baseAppOptions, func(app *baseapp.BaseApp) {
var mempool *appmempool.FifoMempool
if maxTxs := cast.ToInt(appOpts.Get(server.FlagMempoolMaxTxs)); maxTxs >= 0 {
if maxTxs := cast.ToInt(appOpts.Get(server.FlagMempoolMaxTxs)); maxTxs > 0 {
mempool = appmempool.NewFifoMempool(appmempool.FifoMaxTxOpt(maxTxs))
} else {
mempool = appmempool.NewFifoMempool()
Expand Down

0 comments on commit f896c6a

Please sign in to comment.