Skip to content

Commit

Permalink
Revert "set mempool"
Browse files Browse the repository at this point in the history
This reverts commit a56a4d0.
  • Loading branch information
mmsqe committed Jul 19, 2024
1 parent cf56991 commit e2df442
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,8 @@ import (
memiavlrootmulti "github.com/crypto-org-chain/cronos/store/rootmulti"
)

const (
// FIXME remove this line, dummy
appName = "chain-maind"
DefaultMaxTxs = 3000
)
// FIXME remove this line, dummy
const appName = "chain-maind"

func getGovProposalHandlers() []govclient.ProposalHandler {
var govProposalHandlers []govclient.ProposalHandler
Expand Down Expand Up @@ -293,15 +290,7 @@ func New(
// 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) {
maxTxs := cast.ToInt(appOpts.Get(server.FlagMempoolMaxTxs))
if maxTxs <= 0 {
maxTxs = DefaultMaxTxs
}
mempool := mempool.NewPriorityMempool(mempool.PriorityNonceMempoolConfig[int64]{
TxPriority: mempool.NewDefaultTxPriority(),
SignerExtractor: mempool.NewDefaultSignerExtractionAdapter(),
MaxTx: maxTxs,
})
mempool := mempool.NoOpMempool{}
app.SetMempool(mempool)
handler := baseapp.NewDefaultProposalHandler(mempool, app)
app.SetPrepareProposal(handler.PrepareProposalHandler())
Expand Down

0 comments on commit e2df442

Please sign in to comment.