Proto/Staking: add RPCs for baking power
Context
The protocol provides RPCs to get the voting power of a delegate and (since !9329 (merged)) to compute the voting power of a delegate using its current stake instead of the snapshotted one.
Baking power is however a slightly different notion because over-delegated or over-costaked delegates have more voting power than baking power.
This MR adds baking power RPCs similar to the voting power RPCs.
Manually testing the MR
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.rst
for the protocol and the environment,CHANGES.rst
at the root of the repository for everything else). -
Select suitable reviewers using the Reviewers
field below. -
Select as Assignee
the next person who should take action on that MR
Edited by Raphaël Cauderlier