This repository was 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.7k
pallet-session: Migrate the historical part to the new pallet macro #9878
Merged
gui1117
merged 16 commits into
paritytech:master
from
koushiro:migrate-session-historical
Nov 17, 2021
Merged
Changes from 9 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4901c0c
Migrate session-historical to the new pallet macro
koushiro 2d98c6f
pallet-session: Migrate the historical part to the new pallet macro
koushiro fdc8c36
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro c8d6c8f
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro c437265
Fix staking test runtime
koushiro 762c958
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro 875ea9e
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro a70283b
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro 6d71796
Update frame/session/src/historical/mod.rs
gui1117 9202ea4
Update frame/session/src/historical/mod.rs
gui1117 bc2655d
update migration doc
koushiro 3d98af4
use hardcoded prefix for migration v1
koushiro d447366
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro 1698d5f
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro 97b8aff
cargo +nightly-2021-11-08 fmt
koushiro 4b1baeb
Merge remote-tracking branch 'upstream/master' into migrate-session-h…
koushiro 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // This file is part of Substrate. | ||
|
|
||
| // Copyright (C) 2019-2021 Parity Technologies (UK) Ltd. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| /// Version 1. | ||
| /// | ||
| /// For backward compatability reasons, session historical pallet uses `Session` | ||
| /// for storage module prefix before calling this migration. | ||
| /// After calling this migration, it will get replaced with own storage identifier. | ||
koushiro marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| #[cfg(feature = "historical")] | ||
| pub mod v1; | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.