Skip to content

Commit 451e75a

Browse files
committed
remove mempool evmd
1 parent 2a9e687 commit 451e75a

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

ante/evm/mono_decorator.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ func (md MonoDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, ne
251251
)
252252
}
253253

254-
if err := IncrementNonce(ctx, md.accountKeeper, acc, ethTx.Nonce()); err != nil {
255-
return ctx, err
256-
}
257-
258-
// 10. gas wanted
259254
if err := CheckGasWanted(ctx, md.feeMarketKeeper, tx, decUtils.Rules.IsLondon); err != nil {
260255
return ctx, err
261256
}

evmd/app.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -762,28 +762,6 @@ func NewExampleApp(
762762

763763
app.setAnteHandler(app.txConfig, maxGasWanted)
764764

765-
// set the EVM priority nonce mempool
766-
// If you wish to use the noop mempool, remove this codeblock
767-
if evmtypes.GetChainConfig() != nil {
768-
// TODO: Get the actual block gas limit from consensus parameters
769-
mempoolConfig := &evmmempool.EVMMempoolConfig{
770-
AnteHandler: app.GetAnteHandler(),
771-
BlockGasLimit: 100_000_000,
772-
}
773-
774-
evmMempool := evmmempool.NewExperimentalEVMMempool(app.CreateQueryContext, logger, app.EVMKeeper, app.FeeMarketKeeper, app.txConfig, app.clientCtx, mempoolConfig)
775-
app.EVMMempool = evmMempool
776-
777-
app.SetMempool(evmMempool)
778-
checkTxHandler := evmmempool.NewCheckTxHandler(evmMempool)
779-
app.SetCheckTxHandler(checkTxHandler)
780-
781-
abciProposalHandler := baseapp.NewDefaultProposalHandler(evmMempool, app)
782-
abciProposalHandler.SetSignerExtractionAdapter(evmmempool.NewEthSignerExtractionAdapter(sdkmempool.NewDefaultSignerExtractionAdapter()))
783-
app.SetPrepareProposal(abciProposalHandler.PrepareProposalHandler())
784-
}
785-
786-
// In v0.46, the SDK introduces _postHandlers_. PostHandlers are like
787765
// antehandlers, but are run _after_ the `runMsgs` execution. They are also
788766
// defined as a chain, and have the same signature as antehandlers.
789767
//

server/start.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,6 @@ func startInProcess(svrCtx *server.Context, clientCtx client.Context, opts Start
432432
return err
433433
}
434434

435-
if m, ok := evmApp.GetMempool().(*evmmempool.ExperimentalEVMMempool); ok {
436-
m.SetEventBus(bftNode.EventBus())
437-
}
438435
defer func() {
439436
if bftNode.IsRunning() {
440437
_ = bftNode.Stop()

0 commit comments

Comments
 (0)