Proto/AI: Forbid co-stake if delegate's staking_over_baking_limit is zero
Context
Fix #5828 (closed)
Depends on !8973 (merged) and !9040 (merged)
First MR is "Proto/AI: access delegate parameters in alpha context"
The stake
operation fails when AI is activated, but the stake operation is from a staker to a delegate that refuses co-staking (by setting it's staking_over_baking_limit
to 0)
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