Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalize state after each call in callMany (#6381)
In `debug_traceCallMany` and `eth_callMany` the `IntraBlockState` is not being finalized after each replayed transaction and after each call. This can cause several problems: - False gas consumption calculation. Specifically in `SSTORE` dynamic gas calculation being affected by "warm" and "cold" storage slots, and by "original" value comparison. - Ability to call contracts that were `SELFDESTRUCT`ed in the replayed transactions or during previous calls, as the self-destruction has not been finalized. see #6373 as an example. This pull request adds a call to `FinalizeTx` after each `ApplyMessage` and `TraceTx`
- Loading branch information