Skip to content

Commit

Permalink
fix: replace noop mempool with sender nonce mp
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Mar 15, 2024
1 parent 7dce06b commit 1fc97e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1fc97e5

Please sign in to comment.