From fdfada924b88c6cad4b9be49a699823e3f305fd7 Mon Sep 17 00:00:00 2001 From: itsdevbear Date: Wed, 31 Jan 2024 00:27:46 -0500 Subject: [PATCH] boom --- cosmos/runtime/txpool/mempool.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/cosmos/runtime/txpool/mempool.go b/cosmos/runtime/txpool/mempool.go index 4a043d516..db7f9bad0 100644 --- a/cosmos/runtime/txpool/mempool.go +++ b/cosmos/runtime/txpool/mempool.go @@ -158,21 +158,5 @@ func (m *Mempool) Select(context.Context, [][]byte) mempool.Iterator { // Remove is an intentional no-op as the eth txpool handles removals. func (m *Mempool) Remove(tx sdk.Tx) error { - // Get the Eth payload envelope from the Cosmos transaction. - msgs := tx.GetMsgs() - if len(msgs) == 1 { - env, ok := utils.GetAs[*types.WrappedPayloadEnvelope](msgs[0]) - if !ok { - return nil - } - - // Unwrap the payload to unpack the individual eth transactions to remove from the txpool. - for _, txBz := range env.UnwrapPayload().ExecutionPayload.Transactions { - ethTx := new(ethtypes.Transaction) - if err := ethTx.UnmarshalBinary(txBz); err != nil { - continue - } - } - } return nil }