Skip to content

Commit

Permalink
Add warning if TX intrinsic gas is too low
Browse files Browse the repository at this point in the history
  • Loading branch information
wizeguyy committed May 25, 2023
1 parent 6f5186e commit 7bb18af
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 @@ -645,6 +645,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
return err
}
if tx.Gas() < intrGas {
log.Warn("tx has insufficient gas", "gas supplied", tx.Gas(), "gas needed", intrGas, "tx", tx)
return ErrIntrinsicGas
}
return nil
Expand Down

0 comments on commit 7bb18af

Please sign in to comment.