Browse Source

runtime: remove custom runtime upgrade code

Mokhtar Naamani 4 years ago
parent
commit
68bc05de3d
2 changed files with 2 additions and 17 deletions
  1. 2 2
      Cargo.lock
  2. 0 15
      runtime/src/runtime_api.rs

+ 2 - 2
Cargo.lock

@@ -1993,7 +1993,7 @@ dependencies = [
 
 [[package]]
 name = "joystream-node"
-version = "3.5.0"
+version = "3.6.0"
 dependencies = [
  "frame-benchmarking",
  "frame-benchmarking-cli",
@@ -2053,7 +2053,7 @@ dependencies = [
 
 [[package]]
 name = "joystream-node-runtime"
-version = "7.9.0"
+version = "7.10.0"
 dependencies = [
  "frame-benchmarking",
  "frame-executive",

+ 0 - 15
runtime/src/runtime_api.rs

@@ -60,21 +60,6 @@ pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<AccountId, Call, Signa
 pub struct CustomOnRuntimeUpgrade;
 impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
     fn on_runtime_upgrade() -> Weight {
-        let default_text_constraint = crate::working_group::default_text_constraint();
-        let default_content_working_group_mint_capacity = 0;
-
-        ContentDirectoryWorkingGroup::<Runtime>::initialize_working_group(
-            default_text_constraint,
-            default_text_constraint,
-            default_text_constraint,
-            default_content_working_group_mint_capacity,
-        );
-
-        // Next Id's are configured at genesis. Applications and tools are harcoded to expect initial
-        // values of the ids to start at 1. With a runtime upgrade the initial values will not be
-        // configured and get an initial default value of zero. This corrects this problem.
-        content_directory::Module::<Runtime>::set_initial_ids_to_one();
-
         10_000_000 // TODO: adjust weight
     }
 }