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

Fix3 #1438

Merged
merged 5 commits into from
Jan 17, 2024
Merged

Fix3 #1438

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bet
  • Loading branch information
itsdevbear committed Jan 17, 2024
commit 1e1f2ce5c5e042a291ba4c772ccf8970163f76df
5 changes: 0 additions & 5 deletions cosmos/runtime/txpool/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package txpool

import (
"errors"
"fmt"
"time"

"github.com/berachain/polaris/cosmos/x/evm/types"
Expand Down Expand Up @@ -76,19 +75,15 @@ func (m *Mempool) shouldEjectFromCometMempool(
// 3. If the transaction's gas params are over the configured limit.
includedInBlock := m.includedCanonicalChain(txHash)
expired := currentTime-m.crc.TimeFirstSeen(txHash) > m.lifetime

priceOverLimit := tx.GasPrice().Cmp(m.priceLimit) <= 0

if includedInBlock {
fmt.Println("includedInBlock", txHash)
telemetry.IncrCounter(float32(1), MetricKeyTimeShouldEjectInclusion)
}
if expired {
fmt.Println("expired", currentTime-m.crc.TimeFirstSeen(txHash), "lifetime", m.lifetime)
telemetry.IncrCounter(float32(1), MetricKeyTimeShouldEjectExpiredTx)
}
if priceOverLimit {
fmt.Println("price OverLimit", tx.GasPrice(), "priceLimit", m.priceLimit)
telemetry.IncrCounter(float32(1), MetricKeyTimeShouldEjectPriceLimit)
}
return includedInBlock || expired || priceOverLimit
Expand Down
Loading