Skip to content
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

fix: collator selection v2 storage migration #1862

Merged
merged 6 commits into from
Jun 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
wischli committed Jun 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 8f64c573222b8777e3db1e95a86f5a79da2787a1
3 changes: 2 additions & 1 deletion runtime/common/src/migrations/collator_selection_v2.rs
Original file line number Diff line number Diff line change
@@ -36,7 +36,8 @@ pub type Candidates<T: Config> = StorageValue<
ValueQuery,
>;

/// Migrate to storage to V2 without bumping storage version because it is missing in v1.7.2 SDK
/// Migrate to storage to V2 without bumping storage version because it is
/// missing in v1.7.2 SDK
pub struct UncheckedMigrationToV2<T>(sp_std::marker::PhantomData<T>);
impl<T: Config + pallet_balances::Config> OnRuntimeUpgrade for UncheckedMigrationToV2<T> {
fn on_runtime_upgrade() -> Weight {