Tezlink/Kernel: increment counter after successfully applying an operation
Linear issue
None
What
This is a small bugfix in counter management in the Tezlink kernel. When an operation is successfully applied, the counter of the source needs to be incremented otherwise it isn't counting anything.
Why
This prevents replaying past operations.
How
Manually testing the MR
We have a test, test_produce_tezlink_block_with_reveal_and_transfer, in which an account sends two operations (a reveal and a transfer). The test is updated in this MR to stop using the same counter for both operations.
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