Skip to content

Commit

Permalink
Delete the storage version check
Browse files Browse the repository at this point in the history
  • Loading branch information
badkk committed Sep 21, 2020
1 parent 92bc2dd commit 3c87c9d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cstrml/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1520,10 +1520,6 @@ impl<T: Trait> Module<T> {
/// * CurrentEraStartSessionIndex
/// * CurrentEraPointsEarned
fn do_upgrade() {
if StorageVersion::get() == Releases::V2 {
return
}

// Deprecated storages used for migration only
mod deprecated {
use crate::{Trait, Moment, SessionIndex};
Expand Down Expand Up @@ -1584,9 +1580,6 @@ impl<T: Trait> Module<T> {
deprecated::CurrentEraStart::kill();
deprecated::CurrentEraStartSessionIndex::kill();
deprecated::CurrentEraPointsEarned::kill();

// 4. Upgrade StorageVersion
StorageVersion::put(Releases::V2);
}

/// Insert new or update old stake limit
Expand Down

0 comments on commit 3c87c9d

Please sign in to comment.