Browse Source

substrate upgrade: bump runtime version

Mokhtar Naamani 6 years ago
parent
commit
f667a5beaa
3 changed files with 4 additions and 26 deletions
  1. 1 1
      Cargo.toml
  2. 2 2
      src/lib.rs
  3. 1 23
      src/migration.rs

+ 1 - 1
Cargo.toml

@@ -2,7 +2,7 @@
 authors = ['Joystream']
 edition = '2018'
 name = 'joystream-node-runtime'
-version = '1.0.1'
+version = '4.1.0'
 
 [features]
 default = ['std']

+ 2 - 2
src/lib.rs

@@ -116,8 +116,8 @@ pub mod opaque {
 pub const VERSION: RuntimeVersion = RuntimeVersion {
     spec_name: create_runtime_str!("joystream-node"),
     impl_name: create_runtime_str!("joystream-node"),
-    authoring_version: 3,
-    spec_version: 5,
+    authoring_version: 4,
+    spec_version: 1,
     impl_version: 0,
     apis: RUNTIME_API_VERSIONS,
 };

+ 1 - 23
src/migration.rs

@@ -13,7 +13,7 @@ use system;
 // the runtime doesn't need to maintain any logic for old migrations. All knowledge about state of the chain and runtime
 // prior to the new runtime taking over is implicit in the migration code implementation. If assumptions are incorrect
 // behaviour is undefined.
-const MIGRATION_FOR_SPEC_VERSION: u32 = 5;
+const MIGRATION_FOR_SPEC_VERSION: u32 = 2;
 
 impl<T: Trait> Module<T> {
     fn runtime_initialization() {
@@ -23,28 +23,6 @@ impl<T: Trait> Module<T> {
 
         print("running runtime initializers");
 
-        <members::Module<T>>::initialize_storage();
-
-        // Initialize Storage provider role parameters
-        let _ = <actors::Module<T>>::set_role_parameters(
-            actors::Role::Storage,
-            actors::RoleParameters {
-                min_stake: BalanceOf::<T>::sa(3000),
-                max_actors: 10,
-                reward: BalanceOf::<T>::sa(10),
-                reward_period: T::BlockNumber::sa(600),
-                unbonding_period: T::BlockNumber::sa(600),
-                entry_request_fee: BalanceOf::<T>::sa(50),
-
-                // not currently used
-                min_actors: 5,
-                bonding_period: T::BlockNumber::sa(600),
-                min_service_period: T::BlockNumber::sa(600),
-                startup_grace_period: T::BlockNumber::sa(600),
-            },
-        );
-        let _ = <actors::Module<T>>::set_available_roles(vec![actors::Role::Storage]);
-
         // ...
         // add initialization of other modules introduced in this runtime
         // ...