From 3877af2312d18504c5afcbce432978d3a3337241 Mon Sep 17 00:00:00 2001 From: cyka Date: Tue, 30 Jan 2024 23:10:40 -0500 Subject: [PATCH] adding time first seen check on tx hash --- cosmos/runtime/txpool/ante.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cosmos/runtime/txpool/ante.go b/cosmos/runtime/txpool/ante.go index 070c7a6a5..306116dce 100644 --- a/cosmos/runtime/txpool/ante.go +++ b/cosmos/runtime/txpool/ante.go @@ -97,6 +97,7 @@ func (m *Mempool) validateStateless(ctx sdk.Context, tx *ethtypes.Transaction) b // 1. If the transaction has been in the mempool for longer than the configured timeout. // 2. If the transaction's gas params are less than or equal to the configured limit. expired := currentTime-m.crc.TimeFirstSeen(txHash) > m.lifetime + ctx.Logger().Info("validateStateless", "currentTime", currentTime, "timeFirstSeen", m.crc.TimeFirstSeen(txHash), "expired", expired) priceLeLimit := tx.GasPrice().Cmp(m.priceLimit) <= 0 if expired {