Proto: fix the cycle in some balance updates
Currently the cycle mentioned in some balance updates and the cycle at which the corresponding funds have been granted or deposited can differ. In particular, this is the case for nonce revelations and endorsements when those operations are included in a cycle that is different from the cycle the operations refer to. For the sake of uniformity, this MR changes that behavior so that a balance update of the form (Rewards (b, c) ...... amount) or (Deposits (b, c) ...... amount) always means an increase or decrease in the balance of frozen funds associated to baker b for cycle c (and awaiting to be unfrozen after preserved_cycles).
Manually testing the MR
dune build @src/proto_alpha/lib_protocol/test/runtest
poetry run pytest tests_alpha/
Reviewers
Edited by Boubacar Sall