Skip to content

Proto, SCORU: RPC combinations to retrieve from the LCC all the commitments and their given stakers level by level

Context

Note that this MR will most likely need a backport to M protocol.

#4535 (closed) (requoting what was written in the issue:)

Since a staker now stake on a commitment rather than on a branch, it can stake on multiple commitments at a time, one per inbox level, therefore, the commitment to retrieve the commitment associated to a staker for a given rollup must now be retrieve the commitments associated to a staker per level for a given rollup.

To do it properly, with the constraints given by what we have in src/proto_alpha/lib_protocol/storage.ml, we need an rpc that:

  • returns the commitment list for a given inbox level

  • returns the list of stakers' indexes for a given commitment

  • returns the list of stakers' public key hashes for a given rollup id

  • returns the stakers' index for a given stakers' public key hash

This way we will be able to retrieve from the LCC, all the commitments and their given stakers level by level.

Manually testing the MR

CI

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 Rodi-Can Bozman

Merge request reports