Enumeratable dispatches using unhashed index in key. (#4278)

This commit is contained in:
Gavin Wood
2019-12-03 00:49:27 +01:00
committed by GitHub
parent c1ee9aeec1
commit 0f1a5f6514
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to equal spec_version. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 197,
spec_version: 198,
impl_version: 198,
apis: RUNTIME_API_VERSIONS,
};
+1 -1
View File
@@ -283,7 +283,7 @@ decl_storage! {
map ReferendumIndex => Option<(ReferendumInfo<T::BlockNumber, T::Hash>)>;
/// Queue of successful referenda to be dispatched.
pub DispatchQueue get(fn dispatch_queue):
map T::BlockNumber => Vec<Option<(T::Hash, ReferendumIndex)>>;
map hasher(twox_64_concat) T::BlockNumber => Vec<Option<(T::Hash, ReferendumIndex)>>;
/// Get the voters for the current proposal.
pub VotersFor get(fn voters_for): map ReferendumIndex => Vec<T::AccountId>;
+2 -2
View File
@@ -173,8 +173,8 @@ impl NativeVersion {
self.runtime_version.spec_name,
other.spec_name,
))
} else if (self.runtime_version.authoring_version != other.authoring_version
&& !self.can_author_with.contains(&other.authoring_version))
} else if self.runtime_version.authoring_version != other.authoring_version
&& !self.can_author_with.contains(&other.authoring_version)
{
Err(format!(
"`authoring_version` does not match `{version}` vs `{other_version}` and \