This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Generate storage info for Pallets Offences and Session #10113
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to pallet staking. Moved MAX_UNLOCKING_CHUNKS from being a constant to being a type called `MaxUnlockingChunks`
`MaxNominations` to allow it to be a bound for a `BoundedVec`
pallet compiles!
storage to being a runtime parameter `MaxNbOfValidators` Fixing various other compile errors
… staking-storage-info
implementation to `frame-support`
This was referenced Oct 28, 2021
Companion for Generate storage info for Pallets Offences and Session #10113
paritytech/polkadot#4174
Closed
in session pallet. This is done so that it's less restrictive on cumulus when using `SessionManager` Moving implementation of `map_collect` to `WeakBoundedVec` Adding tests for `map_collect` and `map_collect_ref`
…/substrate into offences-storage-info
georgesdib
requested review from
adoerr,
andresilva and
kianenigma
as code owners
October 30, 2021 20:19
kianenigma
reviewed
Oct 31, 2021
… offences-storage-info
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
stale
bot
added
the
A5-stale
Pull request did not receive any updates in a long time. No review needed at this stage. Close it.
label
Dec 12, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A5-stale
Pull request did not receive any updates in a long time. No review needed at this stage. Close it.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes part of paritytech/polkadot-sdk#323.
Adding
generate_storage_info
to palletsoffences
andsession
.This PR depends on #9864 being merged first.
Polkadot companion: paritytech/polkadot#4174.
Cumulus companion: paritytech/cumulus#710.
Summary of changes below:
Changing
MAXIMUM_TARGETS
constant into a runtime paramMaxTargets
.Updated
election-provider-support
documentation accordingly.Adding
generate_storage_info
to palletsoffences
andsession
with the corresponding changes and test changes.I had to introduce
MaxKeysEncodingSize
to bound the encoding of the keys.Adding
map_collect
andmap_collect_ref
utility functions toWeakBoundedVec
, this allows to write shorter code when manipulatingBoundedVec
. I have also added tests for these 2 functions.Moved traits
ReportOffence
andOnOffenceHandler
as well as the structOffenceDetails
fromprimitives/staking
intoframe-support
to be able to useWeakBoundedVec
.