New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make author_mapping::set_keys take 1 input like pallet_session::set_keys #1525
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please replace T::AllKeys
by (NimbusId, T::Keys)
Co-authored-by: Éloïs <c@elo.tf>
Need to change Growing the |
If we have no useful use case to have several NimbusId linked to a single AccountId, it is better to forbid this. |
@librelois what to do if there are existing cases of 1 AccountId linked to several NimbusId? How would the migration work? On moonbeam, |
I think migration should be simple, pick the first one in the list. |
We should also notify Yann that a communication with collators will be required as early as possible |
Ok I will remove the association for the others |
Think if you run on the benchmarking machine it will be under |
MY latest experience is that it is in the moonbeam root folder as weights.rs. Dont know if this has changed though |
What does it do?
set_keys
extrinsic fromto
register_keys
extrinsic fromto
This will allow collators to copy paste their output from RPC
author_rotateKeys
into these extrinsics just like the Polkadot/Kusama UX.In order to do this, it adds a reverse mapping from AccountId to NimbusId.
Breaking Change (Maximum 1 NimbusId Per AccountId)
The migration will take the first
NimbusId
owned by a givenAccountId
to insert intoNimbusLookup: AccountId => Option<NimbusId>
. For any additionalNimbusId
owned by thatAccountId
, the migration clears the association and returns (unreserves) the deposit.