good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 97aacd9b authored by Marius van der Wijden's avatar Marius van der Wijden Committed by GitHub
Browse files

core: fix pre-check for account balance under EIP-1559 (#23244)


When processing a transaction with London fork rules, EIP-1559 mandates
checking that the sender must have sufficient balance to cover gas * gasFeeCap.

In the EIP's pseudocode, this check happens after the value transferred by the
transaction has already been deducted. However, in go-ethereum, the balance
has not yet been updated when the check happens, and therefore needs to be
added explicitly.

Co-authored-by: default avatarMartin Holst Swende <martin@swende.se>
parent f05419f0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment