Skip to content

Commit

Permalink
EIP-4844: gasCost regression in validateTx due to rebase conflict mis…
Browse files Browse the repository at this point in the history
…handled
  • Loading branch information
jangko committed Jun 25, 2023
1 parent ab4a1a1 commit 39402ea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nimbus/core/validate.nim
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,7 @@ proc validateTransaction*(
$tx.maxFee, $tx.maxPriorityFee])

# the signer must be able to fully afford the transaction
let gasCost = if tx.txType >= TxEip1559:
tx.gasLimit.u256 * tx.maxFee.u256
else:
tx.gasLimit.u256 * tx.gasPrice.u256
let gasCost = tx.gasCost()

if balance < gasCost:
return err("invalid tx: not enough cash for gas. avail=$1, require=$2" % [
Expand Down

0 comments on commit 39402ea

Please sign in to comment.