From 1fc97e5c8512ccba3be7d2cb020230fb23e8eeb8 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Fri, 15 Mar 2024 10:11:35 +0800 Subject: [PATCH] fix: replace noop mempool with sender nonce mp --- app/app.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/app.go b/app/app.go index fb20cffb..7ea15ba3 100644 --- a/app/app.go +++ b/app/app.go @@ -10,6 +10,7 @@ import ( // #nosec G702 "github.com/prometheus/client_golang/prometheus" + "github.com/cosmos/cosmos-sdk/types/mempool" authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation" wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper" @@ -193,6 +194,9 @@ func NewTerraApp( bApp := baseapp.NewBaseApp(terraappconfig.AppName, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...) bApp.SetCommitMultiStoreTracer(traceStore) bApp.SetVersion(version.Version) + + mpool := mempool.NewSenderNonceMempool() + bApp.SetMempool(mpool) bApp.SetInterfaceRegistry(interfaceRegistry) app := &TerraApp{ BaseApp: bApp,