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
Used CountedStorageMap in pallet-staking #10233
Merged
paritytech-processbot
merged 29 commits into
paritytech:master
from
ayevbeosa:ayevbeosa-employ-counted-map
Dec 7, 2021
Merged
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
662fffe
Removed counters and used CountedStorageMap instead.
ayevbeosa 48a4825
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa da2d7ec
Little refactoring
ayevbeosa 31f7bd7
Update frame/staking/src/migrations.rs
ayevbeosa a8c2f16
Removed redundant code to update counter for validator & nominator.
ayevbeosa 01a605d
Removed redundant code to update counter for validator & nominator.
ayevbeosa 2c192d8
Removed unreachable code to inject the hashed prefix for nominator & …
ayevbeosa c2f7577
Removed redundant check for nominator & validator count.
ayevbeosa b332858
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa d771e4a
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa e449fe5
Generated `fn prefix_hash` for `CountedStorageMap`.
ayevbeosa 65d7d02
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa b9d0a88
Applied changes from `cargo fmt`
ayevbeosa 9b21bef
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa d79d380
Possible correct implementation of migration code
ayevbeosa 16d6a44
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa 190ec8e
Implemented fn module_prefix, storage_prefix and prefix_hash.
ayevbeosa 41f8dae
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa 3a0500f
Removed counted_map.rs
ayevbeosa fac8882
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa bf1bc0a
Renamed `fn storage_prefix` to `storage_counter_prefix`.
ayevbeosa 36115cb
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa de685ff
Update frame/support/src/storage/types/counted_map.rs
gui1117 d07414f
Update frame/bags-list/remote-tests/src/snapshot.rs
gui1117 256ac95
Update frame/support/src/storage/types/counted_map.rs
gui1117 fa56998
Merge branch 'master' into ayevbeosa-employ-counted-map
ayevbeosa a437c17
Fixed errors.
ayevbeosa b7e8047
Merge branch 'master' of https://github.com/paritytech/substrate into…
ayevbeosa da0f59f
Merge remote-tracking branch 'origin/master' into 10233
gui1117 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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.
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.
This is kinda pointless now to have. We already check these in
fn check_count
as well, which is called after every test.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.
Okay that makes sense, I will have them removed.