浏览代码

Review fixes

- bump runtime version to the 6.16.0
- add comments
- restore parity-scale-codec version (1.0.0)
- change common module version to 1.1.0
Shamil Gadelshin 4 年之前
父节点
当前提交
8cc70d4fc2

+ 2 - 2
Cargo.lock

@@ -1614,7 +1614,7 @@ dependencies = [
 
 [[package]]
 name = "joystream-node-runtime"
-version = "6.15.0"
+version = "6.16.0"
 dependencies = [
  "parity-scale-codec",
  "safe-mix",
@@ -4602,7 +4602,7 @@ dependencies = [
 
 [[package]]
 name = "substrate-common-module"
-version = "1.0.1"
+version = "1.1.0"
 dependencies = [
  "parity-scale-codec",
  "serde",

+ 1 - 1
runtime-modules/common/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = 'substrate-common-module'
-version = '1.0.1'
+version = '1.1.0'
 authors = ['Joystream contributors']
 edition = '2018'
 

+ 3 - 1
runtime-modules/common/src/lib.rs

@@ -20,7 +20,9 @@ pub struct BlockAndTime<BlockNumber, Moment> {
     pub time: Moment,
 }
 
-/// Gathers current block and time information for the runtime
+/// Gathers current block and time information for the runtime.
+/// If this function is used inside a config() at genesis the timestamp will be 0
+/// because the timestamp is actually produced by validators.
 pub fn current_block_time<T: system::Trait + timestamp::Trait>(
 ) -> BlockAndTime<T::BlockNumber, T::Moment> {
     BlockAndTime {

+ 1 - 1
runtime-modules/service-discovery/Cargo.toml

@@ -61,7 +61,7 @@ rev = 'c37bb08535c49a12320af7facfd555ce05cce2e8'
 default-features = false
 features = ['derive']
 package = 'parity-scale-codec'
-version = '1.1.0'
+version = '1.0.0'
 
 [dev-dependencies.runtime-io]
 default_features = false

+ 1 - 1
runtime/Cargo.toml

@@ -5,7 +5,7 @@ edition = '2018'
 name = 'joystream-node-runtime'
 # Follow convention: https://github.com/Joystream/substrate-runtime-joystream/issues/1
 # {Authoring}.{Spec}.{Impl} of the RuntimeVersion
-version = '6.15.0'
+version = '6.16.0'
 
 [features]
 default = ['std']

+ 1 - 1
runtime/src/lib.rs

@@ -145,7 +145,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
     spec_name: create_runtime_str!("joystream-node"),
     impl_name: create_runtime_str!("joystream-node"),
     authoring_version: 6,
-    spec_version: 15,
+    spec_version: 16,
     impl_version: 0,
     apis: RUNTIME_API_VERSIONS,
 };