Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 368318c

Browse files
authored
Enumeratable dispatches using unhashed index in key. (#4278)
1 parent c837c8d commit 368318c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/node/runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
7878
// and set impl_version to equal spec_version. If only runtime
7979
// implementation changes and behavior does not, then leave spec_version as
8080
// is and increment impl_version.
81-
spec_version: 197,
81+
spec_version: 198,
8282
impl_version: 198,
8383
apis: RUNTIME_API_VERSIONS,
8484
};

frame/democracy/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ decl_storage! {
283283
map ReferendumIndex => Option<(ReferendumInfo<T::BlockNumber, T::Hash>)>;
284284
/// Queue of successful referenda to be dispatched.
285285
pub DispatchQueue get(fn dispatch_queue):
286-
map T::BlockNumber => Vec<Option<(T::Hash, ReferendumIndex)>>;
286+
map hasher(twox_64_concat) T::BlockNumber => Vec<Option<(T::Hash, ReferendumIndex)>>;
287287

288288
/// Get the voters for the current proposal.
289289
pub VotersFor get(fn voters_for): map ReferendumIndex => Vec<T::AccountId>;

primitives/sr-version/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ impl NativeVersion {
173173
self.runtime_version.spec_name,
174174
other.spec_name,
175175
))
176-
} else if (self.runtime_version.authoring_version != other.authoring_version
177-
&& !self.can_author_with.contains(&other.authoring_version))
176+
} else if self.runtime_version.authoring_version != other.authoring_version
177+
&& !self.can_author_with.contains(&other.authoring_version)
178178
{
179179
Err(format!(
180180
"`authoring_version` does not match `{version}` vs `{other_version}` and \

0 commit comments

Comments
 (0)