New CLI manager operation to recover SCORU bonds
Context
This MR partially addresses (the new direction of) #2943 (closed). It:
- adds a new manager operation (Sc_rollup_return_bond) in the protocol
- extends the client to support this new command
- extends an integration test in lib_protocol to trigger return_bond/withdraw stake in a legit and in a non-legit configuration
- extends a Tezt tests to test the new addition in the Client (both a legit and non-legit stake withdrawal)
Note that:
- There are still some holes in Apply that should be filled once Bonds freeze is implemented.
- Tezt test has some placehoders that should be adapted
Manually testing the MR
dune exec src/proto_alpha/lib_protocol/test/integration/operations/main.exe -- test "^sc rollup$"
and
dune exec tezt/tests/main.exe -- --file sc_rollup.ml \
--test "Alpha: observing the correct handling of commitments in the rollup node (no_commitment_publish_before_lcc)"
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 Mohamed IGUERNLALA