mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
Bring back the on_finalize weight of staking. (#8463)
* Bring back the on_finalize weighg of stakin. * Better logs * Also make a few things pub * Fix build * Add assertions * Add test. * remove dbg * Update frame/election-provider-multi-phase/src/unsigned.rs * Update frame/staking/src/tests.rs * Fix * Fix * Update frame/election-provider-multi-phase/src/unsigned.rs
This commit is contained in:
@@ -1205,6 +1205,11 @@ decl_module! {
|
||||
}
|
||||
}
|
||||
|
||||
fn on_initialize(_now: T::BlockNumber) -> Weight {
|
||||
// just return the weight of the on_finalize.
|
||||
T::DbWeight::get().reads(1)
|
||||
}
|
||||
|
||||
fn on_finalize() {
|
||||
// Set the start of the first era.
|
||||
if let Some(mut active_era) = Self::active_era() {
|
||||
|
||||
Reference in New Issue
Block a user