mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
reset events before apply runtime upgrade (#10620)
* reset events before apply runtime upgrade * fix tests * add test * update comment * Update frame/system/src/lib.rs * trigger CI Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -326,7 +326,8 @@ pub fn start_session(session_index: SessionIndex) {
|
||||
System::parent_hash()
|
||||
};
|
||||
|
||||
System::initialize(&(i as u64 + 1), &parent_hash, &Default::default(), Default::default());
|
||||
System::reset_events();
|
||||
System::initialize(&(i as u64 + 1), &parent_hash, &Default::default());
|
||||
System::set_block_number((i + 1).into());
|
||||
Timestamp::set_timestamp(System::block_number() * 6000);
|
||||
|
||||
@@ -345,7 +346,8 @@ pub fn start_era(era_index: EraIndex) {
|
||||
}
|
||||
|
||||
pub fn initialize_block(number: u64, parent_hash: H256) {
|
||||
System::initialize(&number, &parent_hash, &Default::default(), Default::default());
|
||||
System::reset_events();
|
||||
System::initialize(&number, &parent_hash, &Default::default());
|
||||
}
|
||||
|
||||
pub fn generate_equivocation_proof(
|
||||
|
||||
Reference in New Issue
Block a user