mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
Enumeratable dispatches using unhashed index in key. (#4278)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user