From f3a2bc15691f0af126073151c7b3c7521e643983 Mon Sep 17 00:00:00 2001 From: zsystm Date: Tue, 4 Jun 2024 13:29:42 +0900 Subject: [PATCH] chore: change mempool variable name mempool is a package name, so we should avoid naming conflict --- app/app.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 59b05dd18f..92959a15f1 100644 --- a/app/app.go +++ b/app/app.go @@ -298,9 +298,9 @@ func NewEthermintApp( // NOTE we use custom transaction decoder that supports the sdk.Tx interface instead of sdk.StdTx // Setup Mempool and Proposal Handlers baseAppOptions = append(baseAppOptions, func(app *baseapp.BaseApp) { - mempool := mempool.NoOpMempool{} - app.SetMempool(mempool) - handler := baseapp.NewDefaultProposalHandler(mempool, app) + mpool := mempool.NoOpMempool{} + app.SetMempool(mpool) + handler := baseapp.NewDefaultProposalHandler(mpool, app) app.SetPrepareProposal(handler.PrepareProposalHandler()) app.SetProcessProposal(handler.ProcessProposalHandler()) })