Tezlink/Kernel: apply batches
Stacked on !18917 (merged)
Linear issue
Closes L2-239
Next
What
This MR finishes the support of batches on the kernel.
How
- Add
BackTrackedandSkippedreceipts with helper functions to build them - Use consistent naming
- Introduce
apply_batchthat at first only relays information to the oldapply_operationfunction. - Loop on operations to apply them, indicating whether all operations were applied. If an error occurs, transform receipts into backtracked.
Manually testing the MR
All previous tests on transactions now are applied as a batch of size 1.
Several tests are added in the last commit showcasing new behaviour works properly.
make -f etherlink.mk test shows that they still pass.
Edited by Luciano Freitas