Ensure consistency with Ethereum behavior.After OOG, reset the balance in memory.
Test cases:
A has 1 ETH, nonce is 1, B is contract account, C is other account
Tx A to B, nonce 3 with 0.8 ETH, will get an oog error
Tx A to C, nonce 4 with 0.8 ETH
Tx A to C, nonce 2 with 0.01 ETH
Tx C to A with 1 ETH
Both tx will be minted, order of execution: 3,1(oog),4,2
What does this PR do?
Ensure consistency with Ethereum behavior.After OOG, reset the balance in memory. Test cases: A has 1 ETH, nonce is 1, B is contract account, C is other account
Both tx will be minted, order of execution: 3,1(oog),4,2
Reviewers
Main reviewers:
Codeowner reviewers: