Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
boom
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 31, 2024
1 parent e98d8b8 commit fdfada9
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cosmos/runtime/txpool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Check failure on line 160 in cosmos/runtime/txpool/mempool.go

View workflow job for this annotation

GitHub Actions / ci (lint, polaris-linux-latest, 1.21.6)

unused-parameter: parameter 'tx' seems to be unused, consider removing or renaming it as _ (revive)
// 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
}

0 comments on commit fdfada9

Please sign in to comment.