Skip to content

Commit 6dc6310

Browse files
committed
fix(mempool): don't log errors on not found txs in cosmos mempool
1 parent 159ba69 commit 6dc6310

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
- [\#624](https://github.com/cosmos/evm/pull/624) Cleanup unnecessary `fix-revert-gas-refund-height`.
3838
- [\#635](https://github.com/cosmos/evm/pull/635) Move DefaultStaticPrecompiles to /evm and allow projects to set it by default alongside the keeper.
3939
- [\#577](https://github.com/cosmos/evm/pull/577) Cleanup precompiles boilerplate code.
40+
- [\#652](https://github.com/cosmos/evm/pull/652) Don't log "tx not found" errors during genesis initialization when using EVM mempool.
4041

4142
### FEATURES
4243

mempool/mempool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (m *ExperimentalEVMMempool) Remove(tx sdk.Tx) error {
327327

328328
m.logger.Debug("removing Cosmos transaction")
329329
err = m.cosmosPool.Remove(tx)
330-
if err != nil {
330+
if err != nil && !errors.Is(err, sdkmempool.ErrTxNotFound) {
331331
m.logger.Error("failed to remove Cosmos transaction", "error", err)
332332
} else {
333333
m.logger.Debug("Cosmos transaction removed successfully")

0 commit comments

Comments
 (0)