Companion for substrate/pull/8113 (Unleash multi phase) (#2432)

* Almost make it work.

* Make the runtimes build

* Some fixes

* Make the whole thing compile

* Apply suggestions from code review

* Fix review comments

* remove unused.

* nit

* Fix

* "Update Substrate"

* bump tx-version

Co-authored-by: parity-processbot <>
This commit is contained in:
Kian Paimani
2021-03-20 13:13:14 +01:00
committed by GitHub
parent df3fef3fd9
commit 6435296cc5
9 changed files with 195 additions and 282 deletions
@@ -199,21 +199,6 @@ impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().writes(13 as Weight))
.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight)))
}
fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 49_000
.saturating_add((1_193_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 19_000
.saturating_add((613_000 as Weight).saturating_mul(n as Weight))
// Standard Error: 49_000
.saturating_add((77_076_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 103_000
.saturating_add((7_277_000 as Weight).saturating_mul(w as Weight))
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight)))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 108_000