[ADD] Make validator block rewards relative to bond up to a hard cap

Related to #1187 (closed)

  • Add a new NodeAccount property, EffectiveBond, which will be used to calculate block rewards and will be reset every churn
  • When distributing block rewards to validators, distribute in proportion to validators' EffectiveBond
  • Add a new constant ValidatorMaxRewardRatio, which is the ratio to MinimumBondInRune at which a node's EffectiveBond is capped
  • Add a store migration to update currently active validators' EffectiveBond

Merge request reports

Loading