From 358565e0463a311536a7e3fd72aaccb5757c0658 Mon Sep 17 00:00:00 2001 From: Solovyov1796 Date: Thu, 6 Mar 2025 20:25:11 +0800 Subject: [PATCH] set max for priority nonce mempool --- cmd/0gchaind/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/0gchaind/app.go b/cmd/0gchaind/app.go index 3ed4dc62..25f3291a 100644 --- a/cmd/0gchaind/app.go +++ b/cmd/0gchaind/app.go @@ -110,7 +110,7 @@ func (ac appCreator) newApp( skipLoadLatest = cast.ToBool(appOpts.Get(flagSkipLoadLatest)) } - mempool := app.NewPriorityMempool() + mempool := app.NewPriorityMempool(app.PriorityNonceWithMaxTx(cast.ToInt(appOpts.Get(server.FlagMempoolMaxTxs)))) bApp := app.NewBaseApp(logger, db, ac.encodingConfig, baseapp.SetPruning(pruningOpts),