EVM: Kernel: make tick model safer
Context
Contributes to #5873 (closed)
Follows !9214 (merged)
This MR continues of the reboot strategy. It contains enough for the kernel to be safe wrt the maximum number of ticks allowed by the PVM. It does NOT contain what will be needed to avoid losing transactions: the execution is stopped abruptly.
It defines a slightly more elaborate tick model, isolated in a separate module for easier maintenance and readability.
Next !9369 (merged)
Manually testing the MR
Some tests were added in the kernel.
cargo -C src/kernel_evm test
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 Pierre-Emmanuel CORNILLEAU