Skip to content

Commit

Permalink
add a debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Jun 13, 2024
1 parent 5fe2a07 commit 29d7b85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
}
// Drop non-local transactions under our own minimal accepted gas price or tip.
pendingBaseFee := pool.priced.urgent.baseFee
log.Info("pendingBaseFee for tx", "hash", tx.Hash().Hex(), "tx.gasCap", tx.GasFeeCap(), "tx.gasTip", tx.GasTipCap(), "pool.gasPrice", pool.gasPrice, "pendingBaseFee", pendingBaseFee)
if !local && tx.EffectiveGasTipIntCmp(pool.gasPrice, pendingBaseFee) < 0 {
return ErrUnderpriced
}
Expand Down

0 comments on commit 29d7b85

Please sign in to comment.