mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
Move Council and Democracy logic to block initialization (#2806)
* s/on_finalize/on_initialize * bump impl_version
This commit is contained in:
committed by
Gavin Wood
parent
57afa9b440
commit
eac4ed412e
@@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
impl_name: create_runtime_str!("substrate-node"),
|
impl_name: create_runtime_str!("substrate-node"),
|
||||||
authoring_version: 10,
|
authoring_version: 10,
|
||||||
spec_version: 92,
|
spec_version: 92,
|
||||||
impl_version: 92,
|
impl_version: 93,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ decl_module! {
|
|||||||
<TermDuration<T>>::put(count);
|
<TermDuration<T>>::put(count);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_finalize(n: T::BlockNumber) {
|
fn on_initialize(n: T::BlockNumber) {
|
||||||
if let Err(e) = Self::end_block(n) {
|
if let Err(e) = Self::end_block(n) {
|
||||||
print("Guru meditation");
|
print("Guru meditation");
|
||||||
print(e);
|
print(e);
|
||||||
|
|||||||
@@ -485,7 +485,7 @@ decl_module! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn on_finalize(n: T::BlockNumber) {
|
fn on_initialize(n: T::BlockNumber) {
|
||||||
if let Err(e) = Self::end_block(n) {
|
if let Err(e) = Self::end_block(n) {
|
||||||
runtime_io::print(e);
|
runtime_io::print(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user