Skip to content

Commit

Permalink
Revert "add a detailed log"
Browse files Browse the repository at this point in the history
This reverts commit ddfe398.
  • Loading branch information
colinlyguo committed Jun 3, 2024
1 parent 7b77b2d commit ecdfebe
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,18 +672,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
// Transactor should have enough funds to cover the costs
// cost == L1 data fee + V + GP * GL
if b := pool.currentState.GetBalance(from); b.Cmp(new(big.Int).Add(tx.Cost(), l1DataFee)) < 0 {
return fmt.Errorf(
"invalid transaction: insufficient funds for l1fee + gas * price + value. "+
"Sender address: %s, Sender balance: %v, L1 data fee: %v, Gas: %v, Gas price: %v, Gas tip cap: %v, Gas fee cap: %v, Transaction cost: %v",
from.Hex(),
b.Uint64(),
l1DataFee.Uint64(),
tx.Gas(),
tx.GasPrice().Uint64(),
tx.GasTipCap().Uint64(),
tx.GasFeeCap().Uint64(),
tx.Cost().Uint64(),
)
return errors.New("invalid transaction: insufficient funds for l1fee + gas * price + value")
}
}
// Ensure the transaction has more gas than the basic tx fee.
Expand Down

0 comments on commit ecdfebe

Please sign in to comment.