[go: up one dir, main page]

AI: handle storage of computed rewards more cleanly

Category: code quality

Priority: low

Time estimate: days (requires stitching)


in src/proto_alpha/lib_protocol/bootstrap_storage.ml

              (* Hack: we store the rewards here *)
              baking_reward_fixed_portion =
                constants.issuance_weights.base_total_issued_per_minute;
              baking_reward_bonus_per_slot = Tez_repr.zero;
              attesting_reward_per_slot = Tez_repr.zero;

It works, but it's still hackish and should be handled more properly

Might be worth waiting until the end the AI transition period, to be sure what is going to stay long-term.


  • Will it break mainnet? If not then move the issue to %"Adaptive Inflation - Validation"
  • Are they used?
  • Is the current usage OK?
  • Can we get rid of them?
  • Can we migrate them?

The following discussion from !8657 (merged) should be addressed:

Edited by Diane Gallois-Wong