Proto/tests: Update baking policy in Block
What
Update the Excluding
policy in Block
to only return bakers that can bake (has rights, is not deactivated, and is not forbidden). This also allows to update get_alpha_ctxt
by removing the policy specification, which should be less flaky
Why
How
The is_forbidden
and info
RPC have all the information we need, we just need to call them and check in the get_baker
filter.
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