EVM/Node: Verify that gas_limit covers da_fees and don't exceed maximum gas_limit
What
To validate that a transaction is valid, the node will compute the da_fees of the transaction and then verify that the gas_limit provided covers it. There's also a verification on the execution_gas_limit that it doesn't exceed the maximum (30_000_000)
Why
TPS Imrpovement
How
Move gas_for_da_fees computation outside of the simulator and then use it in the validation
Manually testing the MR
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Arnaud Bihan