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

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jan 17, 2024
1 parent 45ee517 commit 1e1f2ce
Showing 1 changed file with 0 additions and 5 deletions.
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

0 comments on commit 1e1f2ce

Please sign in to comment.